Acquire 1st Two Non-Blank & Non-Zero Numbers in Row

Braunschweiger

Board Regular
Joined
Feb 19, 2014
Messages
104
Is there a simple Excel function that will permit me to acquire the first 2 non-blank, non-zero numbers in a row? In the picture below, I'd like 24 to appear in 1st Score and 6 to appear in 2nd Score. As always, thanks in advance for your help!

REAC-Scores.png
[/URL][/IMG]
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Assuming Scores are always positive values, try the LARGE function.
 
Upvote 0
Well, I did find a solution: Go To Special, Blanks, Delete. It's slow but it works. It will give me consecutive numbers. If anyone knows of a better way...please let me know.

Thanks!
 
Upvote 0
Wait...the LARGE function will return the 1st and 2nd "largest" numbers...not necessarily the 1st 2 consecutive numbers.
Your OP doesn't say anything about "consecutive numbers". Can you explain exactly what you want? It would be helpful if you could post a couple of examples showing the raw data and the answer you want a formula to produce.
 
Last edited:
Upvote 0
Please see if this helps you.


Excel 2013/2016
EFGHIJK
3Score1Score22019201820172016
4624624
5125125
61616
72424
Sheet1
Cell Formulas
RangeFormula
E4{=INDEX($H4:$K4,SMALL(IF($H4:$K4<>"",COLUMN($H4:$K4)-COLUMN($H4)+1),1))}
F4{=INDEX($H4:$K4,SMALL(IF($H4:$K4<>"",COLUMN($H4:$K4)-COLUMN($H4)+1),2))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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