**URGENT HELP NEEDED** please!! obtain the last non zero value from a non consecutive set of cells

humberto_wdy

New Member
Joined
Sep 2, 2011
Messages
6
Hi!,

I've just registered on this forum as I was looking for someone to help me with a formula I'm trying to figure so i can finish a document for a project I've been working on the last 48 hours... it may be simple but at this time my brain is fried... :eeek:

This is what i want to do:

I want to obtain the last non zero value from a non consecutive set of cells in the same row... here is an example
______ A B C D E F G H I J T

Row 1: 3 4 4 2 7 5 0 6 7 0 6

I want the formula to look in the row 1 for the data in the B1 E1 H1 & J1, and show me in the cell T1 which number is the furthermost to the right without that number being a zero, in this case, the answer would be 6, located in the cell H1...

Any support is greatly appreciated.
 
Last edited:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Welcome to the Board,

What is the logic behind selecting columns B,E,H &J?
 
Upvote 0
Maybe

=LOOKUP(2,1/CHOOSE({1,2,3,4},B1,E1,H1,J1),CHOOSE({1,2,3,4},B1,E1,H1,J1))
 
Upvote 0
I want to obtain the last non zero value from a non consecutive set of cells in the same row... here is an example
______ A B C D E F G H I J T

Row 1: 3 4 4 2 7 5 0 6 7 0 6

I want the formula to look in the row 1 for the data in the B1 E1 H1 & J1, and show me in the cell T1 which number is the furthermost to the right without that number being a zero, in this case, the answer would be 6, located in the cell H1...
You show single digit values in your cells, but I am guessing that is for example purposes only. What is the maximum value that any of those cells could possibly contain?
 
Upvote 0
Perhaps

=1 / LOOKUP(9E+307, 1 / CHOOSE({1,2,3,4}, B1,E1,H1,J1))
 
Upvote 0
Indeed it is for example purposes only...

I guess the max value could be a million, 1,000,000
Okay, my idea for a real simple formula is "out the window" Give this a try (still pretty simple)...

=IF(J1,J1,IF(H1,H1,IF(E1,E1,IF(B1,B1,""))))
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,845
Members
452,948
Latest member
UsmanAli786

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