Finding non zero value in a group of cells

E

Eric H

I have a monthly list of Selling Prices by part that I want to use a formula
on to retrieve the most recent price. The problem occurs when the last
month(s) in the list has no sales and thus no sellng price. See Below:

Sep Oct Nov Dec

Part A 4 4 4 3
Part B 2 2

I can't use 12 If Statements to say "If Dec is 0, use Nov, If Nov is 0 use
Oct, etc". What formula can I use that will go backwards (In this case Dec
backwards) until it finds a value?
 
G

Gary''s Student

=LOOKUP(2,1/(28:28>0),28:28) will give the last value in row #28, for example
 
T

T. Valko

Assuming the cells are empty (as your sample portrays) and do not contain
numeric 0.

Try this:

=LOOKUP(1E100,B2:M2)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top