Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have A1:A5 which typically fill with data in a sequential manner, i.e.
first A1 would contain a value, then A1 & A2 would contain values, then A1, A2 & A3 would contain values, etc, etc. I want to look into this range of cells (A1:A5) and always retrun the "latest" value to cell C1. E.g. If A1 & A2 have values in them and A3:A5 are empty, then the value of A2 will be returned to C1. If A1, A2 & A3 have values in them then A3's while A4 & A5 are empty, then A3's value will be placed in C1, etc, etc. Thanks! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(A5<"",A5,IF(A4<"",A4,IF(A3<"",A3,IF(A2<"", A2,IF(A1<"",A1,"")))))
-- David Biddulph "WildWill" wrote in message ... I have A1:A5 which typically fill with data in a sequential manner, i.e. first A1 would contain a value, then A1 & A2 would contain values, then A1, A2 & A3 would contain values, etc, etc. I want to look into this range of cells (A1:A5) and always retrun the "latest" value to cell C1. E.g. If A1 & A2 have values in them and A3:A5 are empty, then the value of A2 will be returned to C1. If A1, A2 & A3 have values in them then A3's while A4 & A5 are empty, then A3's value will be placed in C1, etc, etc. Thanks! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
try
=LOOKUP(2,1/(A1:A5<""),A1:A5) Mike "WildWill" wrote: I have A1:A5 which typically fill with data in a sequential manner, i.e. first A1 would contain a value, then A1 & A2 would contain values, then A1, A2 & A3 would contain values, etc, etc. I want to look into this range of cells (A1:A5) and always retrun the "latest" value to cell C1. E.g. If A1 & A2 have values in them and A3:A5 are empty, then the value of A2 will be returned to C1. If A1, A2 & A3 have values in them then A3's while A4 & A5 are empty, then A3's value will be placed in C1, etc, etc. Thanks! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
numbers:
=OFFSET(A1,MAX(IF(ISNUMBER(A1:A5),ROW(A1:A5)))-1,) strings: =OFFSET(A1,MAX(IF(LEN(A1:A5),ROW(A1:A5)))-1,) both formulae array-entered i.e. with CTRL+SHIFT+ENTER On 2 Cze, 12:22, WildWill wrote: I have A1:A5 which typically fill with data in a sequential manner, i.e. first A1 would contain a value, then A1 & A2 would contain values, then A1, A2 & A3 would contain values, etc, etc. I want to look into this range of cells (A1:A5) and always retrun the "latest" value to cell C1. E.g. If A1 & A2 have values in them and A3:A5 are empty, then the value of A2 will be returned to C1. If A1, A2 & A3 have values in them then A3's while A4 & A5 are empty, then A3's value will be placed in C1, etc, etc. Thanks! |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks All!
"WildWill" wrote: I have A1:A5 which typically fill with data in a sequential manner, i.e. first A1 would contain a value, then A1 & A2 would contain values, then A1, A2 & A3 would contain values, etc, etc. I want to look into this range of cells (A1:A5) and always retrun the "latest" value to cell C1. E.g. If A1 & A2 have values in them and A3:A5 are empty, then the value of A2 will be returned to C1. If A1, A2 & A3 have values in them then A3's while A4 & A5 are empty, then A3's value will be placed in C1, etc, etc. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to return the latest result... | Excel Worksheet Functions | |||
Help! How do I return the latest of a series of dates using Vlooku | Excel Worksheet Functions | |||
Lookup / return latest date in range AND value of 1 column to the | Excel Worksheet Functions | |||
Return the latest date from a list of dates | Excel Worksheet Functions | |||
Function to return the latest non-zero value in a range of cells . | Excel Worksheet Functions |