Forum Discussion
matt0020190
Dec 13, 2021Brass Contributor
Second to last value from table with condition
Hi experts Can you help me with the below? I have a list of cash values in a table, example as follows by a rotating week number (1-4). A ------------ B 1 ----------- 40 2------------- ...
OliverScheurich
Dec 13, 2021Gold Contributor
=INDEX($B$1:$B$12,LARGE(IF(($A$1:$A$12=$D$1)*($B$1:$B$12<>""),ROW($1:$12)),2))
Is this what you are looking for? If you don't work with Office365 or 2021 you have to enter formula as arrayformula with ctrl+shift+enter.
SatyaGupta_In
Mar 11, 2023Brass Contributor
I am getting #REF! error please help resolve OliverScheurich
- peiyezhuMar 12, 2023Bronze Contributor
- OliverScheurichMar 11, 2023Gold Contributor
=INDEX($B$1:$B$12,LARGE(IF(($A$1:$A$12=D1)*($B$1:$B$12<>""),ROW($1:$12)),2))
Does this work in your sheet? Enter the formula as an arrayformula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021.
- SatyaGupta_InMar 12, 2023Brass Contributor
downloaded your file, looking good but I am still getting #REF! error, could not attach my Excel file to this reply, please guide OliverScheurich
- OliverScheurichMar 12, 2023Gold Contributor
In the screenshot below i've highlighted where you can attach either a file or a screenshot.