=Indirect("'App Summary'!"&$D$4&"18")
I have two worksheets, Sheet 1 and App Summary. On Sheet 1 in cell D4 I have a column lookup based on a value typed in cell B2. So for instance, if I type in July in cell B2 of Sheet 1, it will place H in cell D4 of Sheet 1. If I type in June in cell B2 of Sheet 1, then it will place G in cell D4 of Sheet 1. Using the above indirect formula, I look up a value in App Summary using the column reference in cell D4 on Sheet 1.
My question is the following. Is there a way to make the above formula dynamic so that if I add a row to the App Summary sheet it will automatically adjust the row in the formula? For instance in the above example lets say I am referencing H18 in the app summary sheet. If I add a row in the app summary sheet just before H18, how do I get the formula on sheet 1 =Indirect("'App Summary'!"&$D$4&"18") to update to =Indirect("'App Summary'!"&$D$4&"19") since the row it was referencing shifted down one?
Assuming from I am referencing H6 in another sheet , the other sheet is App Summary use
=INDIRECT("'App Summary'!"&D3&ROW('App Summary'!$A$6))
If you can be certain that any additional rows in App Summary will be added as right-click and Insert row, then you could reference the a cell in the last row with an absolute reference (using dollar signs to fix the reference).
Another approach would be to convert your App Summary to an Excel table (ctrl + t) and then use structured referencing. That way, you are not vulnerable to the changing structure of the App Summary sheet (except if you change column headings).
Related
I am trying to use the indirect function in Excel to build a formula to return a value on another sheet.
On Sheet A cell D3 has the value B
I want to use the value B to return a value from cell B6 in a Sheet called App Summary.
I tired the below formula on Sheet A:
="'App Summary'!"&Indirect("D3") & 6
This return the string 'App Summary'!B6.
How do I get it to calculate so that is returns the value in cell B6 from the App Summary Sheet?
I usually put the whole statement in the Indirect() function and use '&' to connect parts that are direct quotes with parts that are dynamic.
Example: =INDIRECT("'Workbook A'!A"&A1) will return the value in 'Workbook A'! that is located in column A, at the row indicated by the number in the current sheet's A1. If A1 is 1, this will return the value in 'Workbook A'!A1.
You might try =Indirect("'App Summary'!"&D3&"6"). I'm assuming you want to use a column from another sheet who's value is stored in D3 of the current sheet and look in the 6th row on the Summary sheet.
I have been using VLOOKUP() to populate worksheets with Inventories, however I'm stuck with an issue where one column has the same value in multiple cells, I need to match 2 cells from sheet 2 with sheet 1 and have it return the 3rd cell from sheet 1 into sheet 2.
I'm working with about 350 rows in both sheets, and in some cells the same/different values repeat it self hence needing it to match with 2 cells in the same row.
This is the formula I currently use:
=VLOOKUP(A1&L1,'Sheet1'!$A$1:$E$351,3,FALSE)
I'm expecting it to return the value that's in the 3rd column on sheet 1 in the row that matched the values of Cell A1 and L1 in sheet 2. and the same going on A2 & L2 then A3 & L3 and so forth.
Unless you have values in Column A of your 'Sheet1' that are the equal to to concatenation of your values in Columns A and L in 'Sheet2', the formula will not work.
Instead, I'd try FILTER if you have the newest version of Excel. Something like:
=FILTER('Sheet1'!$C$1:$C$351,
(('Sheet1'!$A$1:$A$351=A1)*('Sheet1'!$L$1:$L$351=L1)))
Another option is INDEX. Something like:
=INDEX('Sheet1'!$C$1:$C$351,
MATCH(A1&L1, 'Sheet1'!$A$1:$A$351&'Sheet1'!$L$1:$L$351,0),
3)
The only way to do this task is to use a helper column
Go to Sheet one where the data table is, insert a column at the starting point of data e.g your Data set starting in SHEET1 from the column A. so insert new column in A
use this formula in A1
=CONCATENATE(B1,C1,D1,E1,F1) Press Enter, Drag the formula down to A351
now go to sheet2 and use this formula in the result cell
=VLOOKUP(A1&L1,'Sheet1'!$A$1:$F$351,4,0)
I have created an Excel file named Sales consisting of the sheets: Settings, Country A, Country B.
In the sheet Settings I have the following values:
A B C
1
2 $B$1
3
4 Country A
5 Country B
6
In the cells A4 and A5 I have the following formulas:
A4 = MID(CELL("filename",'Country A'!$B$1),FIND("]",CELL("filename",'Country A'!$B$1))+1,255)
A5 = MID(CELL("filename",'Country B'!$B$1),FIND("]",CELL("filename",'Country B'!$B$1))+1,255)
As you can see I use the formula as a dynamic reference to get the name of the other sheets into the sheet Settings.
All this works fine so far.
However, now I want to achieve that the part $B$1 within in the formula is used as an Indirect reference to the Cell $A$2 within in the sheet Settings. At the same time I want that the sheet name remains dynamically.
Therefore, the desired result is that the sheet name is automatically adjusted if the user changes the name of the sheet but in case the user delets columns, rows or cells the reference always remains at $B$1.
What do I need to change in my formula to make this work?
Sorry if the title is off, but I have no way of making this short.
I have an excel file with 2 sheets: Sheet1 has the first column filled with data, but in a random pattern (ex: 6 consecutive cells are with data, 6 are without, other of the following alternate; basically there is no way of knowing if the next cell has data or not). I want to copy the first column from Sheet1 into Sheet2 without any blank cells or duplicate ones (the order of the data can be maintained or be changed as the result of the formula).
Can this be done without any coding?
Assuming your Sheet1 is as follows
Then in Cell A2 of Sheet2 enter the following formula
=IFERROR(INDEX(Sheet1!A$2:A$50,SMALL(INDEX(NOT(ISBLANK(Sheet1!$A$2:$A$50))*ROW($A$1:$A$49),0),COUNTBLANK(Sheet1!$A$2:$A$50)+ROW($A1))),"")
Drag/Copy down as required. Change range in formula as needed. See image for reference.
EDIT :
To get unique values from Column A of Sheet2 enter below formula in Cell B2 of Sheet2
=IFERROR(INDEX($A$2:$A$20,MATCH(0,INDEX(COUNTIF($B$1:B1,$A$2:$A$20),0,0),0)),"")
I am trying to use the indirect function in Excel to build a formula to return a value on another sheet.
On Sheet A cell D3 has the value B
I want to use the value B to return a value from cell B6 in a Sheet called App Summary.
I tired the below formula on Sheet A:
="'App Summary'!"&Indirect("D3") & 6
This return the string 'App Summary'!B6.
How do I get it to calculate so that is returns the value in cell B6 from the App Summary Sheet?
I usually put the whole statement in the Indirect() function and use '&' to connect parts that are direct quotes with parts that are dynamic.
Example: =INDIRECT("'Workbook A'!A"&A1) will return the value in 'Workbook A'! that is located in column A, at the row indicated by the number in the current sheet's A1. If A1 is 1, this will return the value in 'Workbook A'!A1.
You might try =Indirect("'App Summary'!"&D3&"6"). I'm assuming you want to use a column from another sheet who's value is stored in D3 of the current sheet and look in the 6th row on the Summary sheet.