Return the vaslue for first cell in an array with something in it

sobrien

Board Regular
Joined
Feb 28, 2006
Messages
179
I want a formula in column Y that returns the first cell to the left in array c:x with something in it be it text or a number. The text will always be DNP yet the number could be any random number.

\For example say from C1 across was as follows:

88 54 99 101 DNP 44 (in cell Y I would want the answer to be 44)

Alternatively if the text was:

88 54 99 (in cell Y I would want the answer to be 99)

I am going to bed so apologies if I don;t thank you until tomorrw

cheers
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
A little confusing - I think you're saying 1st value from the right (ie last value) in which case:

Code:
Y1:
=LOOKUP(2,1/(C1:X1<>""),C1:X1)
 
Upvote 0

Forum statistics

Threads
1,224,543
Messages
6,179,429
Members
452,914
Latest member
echoix

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