Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Parsing thru columns to find the last number
I have six columns of data and am unsure how to get to the final replacement
of an item. See, col A is the itemcode, then b,c,d,e,f contain item codes that have replaced the col a item. Not all items have been replaced five times, some none, some only two, in this case col b would be blank and or col C would be blank. My goal is to find the last item in the columns that were replaced and put it in a column on it's own. So the outcome will be colA is replaced by Col G. The data looks like this. A B C D E F G z k o p i So this was replaced four times and the end result is "i" x z this one only replaced by z once y k g this was replaced twice with end result of g All the end results should be in column G. I tried to sort but some of the blank cells don't past the isblank() test unless I put the cursor in them and then and hit enter - I can't do that for this many items. Is there an easier way? -- l ___________________ Dedicated to learning from the experts |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Parsing thru columns to find the last number
Hi,
Try this in Col G to return the rightmost value =LOOKUP(2,1/(A1:F1<""),A1:F1) -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "Bailey" wrote: I have six columns of data and am unsure how to get to the final replacement of an item. See, col A is the itemcode, then b,c,d,e,f contain item codes that have replaced the col a item. Not all items have been replaced five times, some none, some only two, in this case col b would be blank and or col C would be blank. My goal is to find the last item in the columns that were replaced and put it in a column on it's own. So the outcome will be colA is replaced by Col G. The data looks like this. A B C D E F G z k o p i So this was replaced four times and the end result is "i" x z this one only replaced by z once y k g this was replaced twice with end result of g All the end results should be in column G. I tried to sort but some of the blank cells don't past the isblank() test unless I put the cursor in them and then and hit enter - I can't do that for this many items. Is there an easier way? -- l ___________________ Dedicated to learning from the experts |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Parsing thru columns to find the last number
Excellent - thank you. I always forget about the horizontal lookup., thank
you!!! -- ___________________ Dedicated to learning from the experts "Mike H" wrote: Hi, Try this in Col G to return the rightmost value =LOOKUP(2,1/(A1:F1<""),A1:F1) -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "Bailey" wrote: I have six columns of data and am unsure how to get to the final replacement of an item. See, col A is the itemcode, then b,c,d,e,f contain item codes that have replaced the col a item. Not all items have been replaced five times, some none, some only two, in this case col b would be blank and or col C would be blank. My goal is to find the last item in the columns that were replaced and put it in a column on it's own. So the outcome will be colA is replaced by Col G. The data looks like this. A B C D E F G z k o p i So this was replaced four times and the end result is "i" x z this one only replaced by z once y k g this was replaced twice with end result of g All the end results should be in column G. I tried to sort but some of the blank cells don't past the isblank() test unless I put the cursor in them and then and hit enter - I can't do that for this many items. Is there an easier way? -- l ___________________ Dedicated to learning from the experts |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find match from 1st 3 columns and return the row number | Excel Programming | |||
Find end of number and copy/paste 5 columns | Excel Programming | |||
VBA: find number of columns in named range? | Excel Discussion (Misc queries) | |||
find a number between numbers in two separate columns | Excel Worksheet Functions | |||
find number in multiple columns and rows | Excel Worksheet Functions |