Lookup With 'sheetname' In Formula

Oct 12, 2009

I am collecting a lot of prices from over 60 countries. Each country has a seperate sheet in a workbook, named "Country" Spec (eg Australia Spec, China Spec etc.).
These sheets are all setup exactly the same.

I have the following sheet wherin I want to show the data coming from all the different sheets:

| a | b
-----------------------------------
1 | Australia Spec | "Formula"
-----------------------------------
2 | Bangladesh Spec | "Formula"
-----------------------------------
3 | China Spec | "Formula"

In B1, 2 3 etc I want to do a lookup of a fixed cell on the correct country sheet. Therefore I want to include the sheetname in the formula. Thus I would like in B1 the content of cell q13 of sheet Australia spec. In B2 the content of cell q13 of sheet Bangladesh Spec.

My current formula is:
=INDIRECT(a1&"!$Q$13")

But it doesn't work

View 9 Replies


ADVERTISEMENT

How To Use Cell Value As Sheetname In HLOOKUP Formula

Mar 28, 2012

Trying to do the following and getting an error:

BE18= UK_GBP

=HLOOKUP(Table4[[#This Row],[parent_product_line]],CONCATENATE(BE18,"!")$B$11:$DK$65,4,FALSE)

The CONCATENATE function casues the function to error and highlight the $B$11... array section

I have a table with each row representinginformation about a product a customer owns. I've added columns where I'm using the HLOOKUP function to go to another sheet in the workbook to find the products price. The issue is there are a dozen different pricebook worksheet's becasue of various parts of the work. I've added a column which displays the right pricebook sheet name now I'm just trying to get it that value into the HLOOKUP formula to be the shetname portion of the array value.

View 1 Replies View Related

Sheetname As A Variable

Feb 3, 2010

If I have this line in my macro triggered to run when I click in a specific cell :

View 9 Replies View Related

Cell = Sheetname

Aug 19, 2008

I am guessing that this is fairly simple but i tried finding an answer on the internet and had no luck.... can i have a formula for a cell that returns the sheet name? or a macro?

View 9 Replies View Related

Hardcode The Sheetname

Sep 12, 2006

How do I hardcode a sheet name??? Where would I do that?

View 9 Replies View Related

Summing 3D Range According To Sheetname

Apr 28, 2012

I have a set of 50 large spreadsheets each with the same size and structure.

I have a summary sheet which contains cells that each contain a single-cell 3D range across all the sheets.

But I'd like to modify this summary sheet to find a way of summing a subset of the 50 sheets according to a given criteria.

I imagine this could be a single criteria added to one cell in each of the 50 sheets.

Or perhaps it could be a letter in each sheet's name. eg, if the letters used as criteria are say G, P and S, I would name the sheets something like G1, P2, G3, S4, P5, ....S49, G50.

Perhaps this could be achieved with the indirect function or will it be necessary to resort to VBA?

View 9 Replies View Related

Calculate Week Number From Sheetname

Oct 18, 2006

Daily i import sheets into excel and the sheet name is uniformed to the following

20061017_BNKREC - 20061018_BNKREC - 20061019_BNKREC ..........

just for clarity purposes

[2006] = year, [10] = month, [17] = previous day, [_BNKREC] = report type

I'll be creating a graph to which shows account balance by week, by account.
The data will be coming in daily. i know i will need to create either a dynamic range or copy my data into a new sheet. My head is spinning because i need excel to somehow (either in a formula or VB) determine what WorkingWeek the sheet is in. I dont want to have to keep adjusting formulae or ranges when import a new sheet..

bare with me here as its hard to explain ................

View 2 Replies View Related

Adding Variable To Specific Sheetname In A Sumif Function

Feb 4, 2010

Hi, looking for help desperately in fine tuning a formula. I have a formula at the moment (which works) for searching through a list on a separate file and totalling up all values which relate to it, see below:

=sumif([filename.xls]1’!$B:$B,D10,’[filename.xls]1’!$H:$H)

The tab ‘1’ in the formula relates to the first of the month so this month there are 28 different tabs with similar information.

With C10 containing the date in this instance, does anybody know a way of making ‘1’ a variable so that entering ‘04/02/10’ would change it automatically into a 4? (Unfortunately for me changing the 1 to =c10 didn’t work).

View 14 Replies View Related

Adds Sheetname And Link To Sheet1, Alphabetizes Tabs *

May 17, 2007

Anyone know how to create a line or two to move all workbook sheets into alphabetical order from left to right?

View 5 Replies View Related

Lookup Formula With Two Lookup Values

Nov 12, 2008

I have 3 Sheets named Paid, Rejected, and Reprocessed.

On the Paid and Rejected sheets I have 2 fields Customer # (Column A), and Amount (Column Q). (The customer # field has many duplicates but the amounts are never duplicates)

On the Reprocessed sheet I have all the rejected items (all fields) and also a field named Reprocessed. I need to use a formula that will check the Paid sheet for any items that have the same Customer # and Amount and return the amount

There are 8,216 rejected items and 45,047 paid items. Some items were originally rejected have been reprocessed and show under paid.

Any thoughts on which formula I should use?

View 10 Replies View Related

Lookup Formula: Find The Longitude And Latitude Data From My "lookup" Sheet

Jan 28, 2009

In my workbook I have multiple sheets but I'm attaching a very simple workbook to demonstrate what I'm trying to accomplish. In my "Lookup" tab/sheet. I want to have known Latitude and Longitude data that will exist in columns A&B. Columns C & D will have address numbers and Street Name. I would like my lookup formula to find the longitude and latitude data from my "lookup" sheet, when the matching address information is typed in, in my 2009 sheet. I have to keep the street numerics and street name separate on this worksheet as well. I believe I'll need two separate lookup formulas as I need these formulas to start in cell G4 & H4 in my "GeoCoding1" sheet. Is it possible to have four columns of data to be viewed in a lookup formula? I tried this formula in cell G4 (GeoCoding1 sheet)

View 3 Replies View Related

Using IF LOOKUP SUM And AND In One Formula?

Jan 30, 2014

Why this below formula is giving me a #N/A result when entering 'Motorcycle', '4x4' or 'SLR' into cell H2?

=SUM((LOOKUP(F2,{0,"Standard"},{0,8.99}))+(LOOKUP(H2,{0,"SLR""motorcycle","4x4","Standard"},{0,12.99,9.99,10.99,8.99}))+((LOOKUP(K2,{"Acrylic","Aluminium"},{0,7}))*IF(AND(E2="Y",G2="Y"),2,IF(AND(E2="Y",G2="N"),1,IF(AND(E2="N",G2="Y"),1,0)))))

If there is an error?

View 12 Replies View Related

Lookup Formula

Jun 20, 2007

does anyone know if there is an easy formula to have a cell (h18) copy another cell (J2) if the value in a cell (h17) is greater than the last value entered in the row (17), and if it is not greater than the last value, or if there is no other previous value, to copy cell (K2)

View 14 Replies View Related

IF Formula? IF Then? Should It Be Lookup?

Jan 12, 2009

I am using the following formula to look up data from a seperate sheet and cannot get it to work. all three numbers are on the seperate sheet ... some show correct and others show not there when they are,

EXAMPLE
DATA
A B
99993728569820 you found it!
99993728569820 no
99993767688837 you found it!

FORMULA
{=IF(A3=Sheet1!A:A,"you found it!","no")}

View 2 Replies View Related

Vba On Lookup Formula

Jun 18, 2007

Is it possible to have a macro on vlookup formula? Tried the below code but the lookup result is not what it should be. I know this could easily be done a keying in the lookup formula without using code. But it would be faster if it could be done by using a macro.

Dim c As Range
Sheets("Data").Select
For Each c In Range(Cells(1, 1), Cells(Rows.Count, 1).End(xlUp))
c.Offset(0, 1).Formula = Application.WorksheetFunction.VLookup(Cells(1, 1), Sheets("Master").Range("A1:B10"), 2)
Next c

View 6 Replies View Related

Formula To Lookup And Interpolate

Jun 8, 2007

I got a table of two columns (A1:B6). One column (A1:A6) got temperature values and the other column (B1:B6) got enthalpy values as a function of temperature values as shown in the attached file. All values in the table are empirical values and I am trying to use them to obtain the enthaly (B11:B21) for my own temperatures (A11:A21).

I can use VLookup formula to do so but it won't be accurate because the enthalpy values are very sensitive to temperature changes. I need to use table A1:B6 and interpolate for temperature values that are located in between the integer temperature valuse. e.g. if the temperature=1.5 (between 1 and 2 in the table), how can I obtain the enthalpy value=15 (between 10 and 20) using the table.

View 9 Replies View Related

How To Arrange Lookup Formula

May 13, 2014

How to arrange a lookup formula.

Book2.xlsx

In this example, I am attempting to look up one value based on two criteria. The month must match, and the location must match. In doing so, the value "1" should be returned in the example.

View 3 Replies View Related

How To Lookup A Value And Return A Formula

Apr 6, 2009

I have rows with text and numbers. In order to ensure that the numbers are accurate, I have a "QC formula" that calculates a check using all of the numbers from 1 row. The challenge is that the "QC formula" needs to vary depending on a text value within the row.

How can I lookup up the text value and then return the correct active formula for that row? I have too many differet text values to do a nested If statement. see simplified example below.

Condition ABCFormula' Needed based on Condition
Red123A*B*C
Blue123A+B+C
Green123(A+B)*C

View 13 Replies View Related

Lookup Counting/Sum Formula

Oct 6, 2009

A B
1 2
1 3
1 2
2 3
3 2
1 2
2 1

Im trying to work out a formula that will look down Column A for the number 1 and then will count the number of times the number 2 appears on the same row as number 1 in Column B. The answer I should be getting is 3.

View 3 Replies View Related

Using Two Lookup Values In One Formula

Oct 28, 2009

I am trying to calculate a value by using two lookup statements in one formula. However, I get either #N/A, or very wrong results. Here is the formula:

=LOOKUP($B26,GrapePricing!$A$2:$A$15,GrapePricing!$B$2:$B$15)*
LOOKUP($B26,$B$5:$B$17,$D$5:$D$17)

What I need is to get the value in B26 (it is text, "Merlot"), go to the GrapePriceing sheet and find Merlot in range A2:A15, get the price of Merlot from the GrapePricing sheet range B2:B15, then multiply that by the matching value in the D5:D17 range.

View 5 Replies View Related

LOOKUP And Nesting IF Formula

Aug 3, 2009

The enclosed spreadsheet includes a couple formulas I’m having trouble with.
The questions themselves are detailed in the document.

View 7 Replies View Related

Formula For MAX Value And Lookup Query?

May 8, 2012

I have been struggling with what seemed at first like a very simple formula. I have the sample data as shown below and I am trying to work out a formula that provides the latest value in sheet 2 from sheet 1 column AF based on a number of conditions.

If Sheet2 A1:A500 = Sheet1 F1:F500
And Sheet1 G1:G500 = max & Sheet1 AF1:AF500 doesn't = blank (i.e. last value in column AF)
Then return adjacent value from Sheet1 AF1:AF500

Sheet 1
F-----G-----AF
127--1-----15.6
127--2------3.1
128--1------2.0
128--2-----
129--1------2.5
129--2------1.6
129--3------2.7
130--1------3.3
130--2------3.1
130--3------1.6
130--4------5.4
130--5------
130--6------

Sheet 2
A--------B (desired results)
127-----3.1
128-----2.0
129-----2.7
130-----5.4

View 8 Replies View Related

Formula To Lookup Value In Another Workbook?

Feb 23, 2014

I need a formula to look up the value in another workbook. I have a number of workbooks that have a list o competitor's names and their scores The competitor names are not in the same order in each workbook. I have created a master workbook to extract the score from each workbook. I need the formula to match the name in another workbook and then pick up the score cells to the right.

View 4 Replies View Related

Negative Value Lookup Formula

Sep 19, 2007

Possibly to combine If statement and lookup stmt. I have a spreadsheet that calculates principle, interest, and combined pmt amount based on certain amortization and payment frequency. In one cell I would like the expiry date to pull in (the expiry date would be the date that the fund balance would be at zero ie. all payments have been made and principle is nil). I am trying to make a formula that will search down the payment column and when it sees a negative number or zero, it will fill in the expiry date (which is in a second column) that is attached to that figure.

View 9 Replies View Related

DATE Formula LOOKUP

Dec 3, 2008

I have the following:

"ClosQtr" = 8034 (Closqtr is a named range cell)

As a named range cell "Curr_Mth" changes (which can take end of month values from 30Jun08-31Dec09 only),

I would like A2 to be:

ClosQtr+1 "Curr_Mth"=30Jun08
ClosQtr+1 for 30Jun08

View 9 Replies View Related

Lookup Formula In Macro

Dec 26, 2008

I need to know how can I code a Lookup formula in a VBA.

In Sheet1 of excel, I have several records of data in column A to E.
I have designed a userform, in which user enters data of column A in a textbox and on click of a button, it writes the textbox value in Sheet2.

I need to code a formula in VBA, so that column B and E of Sheet1 data is written in column B and C respectively of Sheet2 (corresponding data of textbox value).

View 9 Replies View Related

Is There A Column Lookup Formula

Nov 4, 2009

I have a spreadsheet with a list of thousands of products in Column A. In Column B, C, D, E, & F there are headers that read: Cincinnati, Dayton, Columbus, Toledo, Cleveland.

In the rows under these column headers it’s either blank or there is a 1. The value 1 represents usage of products (column a) in those markets (columns b thru f). I guess I could use a Y for yes but I used a 1 instead.

In another workbook, I have a short list of a dozen random products that I am trying to match up to the cities that use them. Is there a simple formula that would search for a specific product in column a & return the first market with the value 1 in the corresponding cell?

View 9 Replies View Related

Formula: Go To Lookup Cell

Dec 15, 2006

I'm creating a customer manager spreadsheet. I have my data set up and hidden above the data area, so I can get autocomplete to work. What I want to do is allow my sales reps to pull up the customer information by typing the customer name, etc, which I can do with Vlookup.

I then want them to be able to type in notes into a string which is attached to the customer's row of information. For instance, Customer ABC is on Row 2, their name is A2, address is B2, and notes are C2. However, Vlookup won't allow me to change the cell it finds, only display its contents. I'm sure I'll need a submit button, and possibly some VBA, but I'm not very good with it, and I can't find the answer anywhere else. Let me know if you need any more information. I'm sure it's simple, I just can't find how to do it.

View 7 Replies View Related

Use Lookup Formula For Solution

Feb 7, 2007

I am trying to solve a problem with = LOOKUP. Here's the data. A1 can have a value between 1-100.

IF A1 IS <80.00, NO MULTIPLICATION IS NEEDED
IF AI IS 80.01 TO 85.00, MULTIPLY A2 BY 0.37%
IF AI IS 85.01 TO 90.00, MULTIPLY A2 BY 0.52%
IF AI IS 95.01 TO 95.00, MULTIPLY A2 BY 0.87%
IF AI IS 95.01 TO 100.00, MULTIPLY A2 BY 1.07%

Is there a =LOOKUP formula that can be used here?

View 2 Replies View Related

Lookup Formula Error

Jun 20, 2007

It appears my formula = lookup(B1, {"April","August","December","February","January","July","June","March","May","November","October","September"},{"04_","08_","12_","02_","01_","07_",06_","03_","05_","11_","10_","09_"})
is not complete with the last parenthesis and I cannot exit the cell with the formula as is above. It looks right to me, what am I missing?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved