Looking up NON - ZERO numbers, using Formula

agage5

New Member
Joined
Aug 10, 2016
Messages
9
Thank you for helping me! :)

I am trying to do a lookup that will pull the first Non-Zero # in a column. The problem is when I do a vlookup, it pulls the first match, and if that match is blank - that's not what I want. I need the first match that has a number in it.

Cell G33 - Here is where my formula is: - please let me know where I'm going wrong with this formula
=IF('50B Data- 2017'!$Y$10:$Y$3913<>"0",INDEX('50B Data- 2017'!$P$10:$Y$8193,MATCH('2017 - PREPAID'!F33,'50B Data- 2017'!$P$10:$P$8193,0),10))

I was trying to pull only non-zero numbers in row Y (which is #10 columns away from Row P)
I want to match my # in Cell F33 to the number in Col P, and have it pull the first non-zero number in col Y.

For example,

Cell F33 has a value of 4509141680, I want to match that number to Col P, and find the value (non-zero in Col Y (I want it to show 20004286)

Cell F33 = 45091414680, Cell G33 = Need formula that will pull in 20004286 (and not 0)

Col PCol QCol RCol SCol TCol UCol VCol WCol XCol Y
12345678910
PO LOOKUP!!NoteR/E # based on PO#R/E based on TextRemainingNon ITG/Not in logsR/E
45091416800
45091416800
450914168020004286
450914168020004286

<tbody>
</tbody>



Thank you so much for your help!! :) :):biggrin:
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Re: Looking up NON - ZERO numbers, using Formula - Please Help :) :) :)

See if this works:

=INDEX($Y$2:$Y$10000,MATCH(1,INDEX(($P$2:$P$10000=$F$33)*($Y$2:$Y$10000>0),0),0))
 
Upvote 0
Re: Looking up NON - ZERO numbers, using Formula - Please Help :) :) :)

WOW!!!!!!

Steve the Fish!!!!!!!!!!!!!!!!!!!! that is EXACTLY what I needed!! It works perfectly.

Thank you!!!! :) :)
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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