Return value in row 2 based on last non-zero in row 4

chunk6649

New Member
Joined
Oct 28, 2009
Messages
8
I am trying to return the value in row 2 based on the last none zero in row 4. With the formula =INDEX($I$2:BP$2,1,MATCH(1,INDEX(--((1/$I4:BP4)>0),0),0)) it will pull the value in row 2 if the value in the cell is .5 or less. I may have zeros in my row as well, so I would want it to pull the last row.

For example, I might have the following values in row 4. I would want the value to be retuned from the cell that the 300 is in. The current forumla would return the value in row to for the .25.

50025.250300

Thank you,

Sean
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try...

chunk.xlsm
HIJKLMNOPQRSTU
1
2Header1Header2Header3Header4Header5Header6Header7Header8Header9Header10Result
3
4500250.250300Header5
5500250.250300752000Header7
6
Sheet1
Cell Formulas
RangeFormula
T4:T5T4=LOOKUP(2,1/(I4:R4<>0),$I$2:$R$2)


Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,945
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top