Timestamp Update Using Formula in Excel But Different Sheet - excel-formula

For Timestamp Update Formula:
=IF(B4<>"",IF(AND(F4<>"",CELL("address")=ADDRESS(ROW(B4),COLUMN(F4))),NOW(),IF(CELL("address")<>ADDRESS(ROW(B4),COLUMN(B4)),F4,NOW())),"")
This works fine when it is on the same sheet, but it's not working for different sheets, even after changing the all of the B4 references into Sheet1!B4 and looking at the output in the Sheet 2 in F4 Cell.
I want my result to be in Sheet 2 where data will be enter in Sheet 1

Related

VLOOKUP With Duplicate Values

I have 2 sheets like the following:
Sheet 1
Sheet 2
I want to enter the values ​​from column B on Sheet 2 into column B on Sheet 1.
In Sheet 1 there are some double/duplicate data such as:
Aek Godang, dan Aek Kanopan
so when I use the formulas:
=VLOOKUP(A1,$Sheet2.A1:B15,2,1) or =INDEX($Sheet2.A1:B15, MATCH(A1,$Sheet2.A1:A15,0),2)
on row 14 where there is the same data as the previous row, it will always be an error
how to solve it or the formula so that the result can be like this:
within GS in B1 use:
=INDEX(IFNA(VLOOKUP(A1:A; Sheet2!A1:B; 2; )))
You need only this, enter the formula in cell B1 of sheet 1 and remember to press cse as its an array formula(for excel 2010 till 2019).
=SMALL(IF(A1='Sheet2'!A$1:A$15,ROW('Sheet2'!A$1:A$15)),1)
=INDEX('Sheet2'!B$1:B$15,SMALL(IF(A1='Sheet2'!A$1:A$15,ROW('Sheet2'!A$1:A$15)),1))
The first link given in the comment with countif doesn't work. Aggregate Function is not available in Google Sheet. In Libre office Small function does work.
With COUNTIF error will be showing, wrong way to resolve.

Getting sheet name dynamically with fixed indirect cell reference

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?

Cleaning a column from one sheet into another

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)),"")

Indirect Function in Excel

=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).

How to stop Excel from changing referenced cell range

My formula in Sheet 1, A3 is
=SUMPRODUCT(('count May'!$D$2:$D$2000=Categories!$A$5)*('count May'!$E$2:$E$2000=Categories!$B$3)*(ISNUMBER(SEARCH('count May'!$F$2:$F$2000,Categories!$C$4))))
Count may is the sheet for the month of may(I'm doing this for a full year), categories is the sheet that has my helper table. When I paste the data from the export with about 1600 rows one column with different companies, another column with different employment status,another column with various locations i.e company $A$5, fulltime $B$3, Location $C$4 into any month sheet the cell that has the above formula changes all the cell ranges from $2:$2000 to $1609:$2000.
=SUMPRODUCT(('count May'!$D$1609:$D$2000=Categories!$A$5)*('count May'!$E$1609:$E$2000=Categories!$B$3)*(ISNUMBER(SEARCH('count May'!$F$1609:$F$2000,Categories!$C$4))))
I then get #Value! or #N/A in A3. Essentially the pasted data makes the formula range in A3 start from a few rows after the last pasted data cell. I have tried to change $D$1609:$D$2000 to $D:$D, $E:$E, $F:$F, but I get a excel cannot complete this task error, I tried changing $D$2000 to $D$1600 but that didn't work and is not feasible because every month will have a different number of rows. I tried cut instead of copy but still happens.
If it is any help the data is put together in one sheet, column D,E,F and then I copy or cut and paste in the month sheet and then the formulas are in a different sheet but reference each month.
Any help is much appreciated.
I'm joining in late here so may be you may have already fixed your bug (if it's the case lets know how!).
If I understand correctly, you have sheet 'Count May' with a formula in A3 and you're a copying data (range A1:F1600) into 'Count May' (presumably in A2) in order to use your formula. Doing so messes up the reference in the formula in A3.
The only way I was able to recreate this was by copying/pasting entire rows, (i.e. rows 1:1600), instead of the range of cells needed, (i.e. A1:F1600). That would insert 1600 rows in 'Count May' and effectively push your reference down. Your second reference wouldn't get moved because it references to another sheet, 'Categories' untouched by the copy/paste. Your problem should be fixed by copying the range of cell needed (instead of entire rows) and selecting A2 (not row 2) to paste.

Resources