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)

[TABLE="width: 662"]
<tbody>[TR]
[TD]Col P[/TD]
[TD]Col Q[/TD]
[TD]Col R[/TD]
[TD]Col S[/TD]
[TD]Col T[/TD]
[TD]Col U[/TD]
[TD]Col V[/TD]
[TD]Col W[/TD]
[TD]Col X[/TD]
[TD]Col Y[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]PO LOOKUP!![/TD]
[TD]Note[/TD]
[TD]R/E # based on PO#[/TD]
[TD]R/E based on Text[/TD]
[TD]Remaining[/TD]
[TD][/TD]
[TD]Non ITG/Not in logs[/TD]
[TD][/TD]
[TD][/TD]
[TD]R/E[/TD]
[/TR]
[TR]
[TD]4509141680[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]4509141680[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]4509141680[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]20004286[/TD]
[/TR]
[TR]
[TD]4509141680[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]20004286[/TD]
[/TR]
</tbody>[/TABLE]



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

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
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,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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