Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to code it in excel?
Copy of message from Excel General Question - 9/26/2006 1:22 AM PST
Does anyone know on how to code on following condition in this group? [row 1] a blank row [row 2] 10, which should be equal to the last value in row 3 [row 3] 10 [row 4] a blank row [row 1] a blank row [row 2] 23, which should be equal to the last value in row 4 [row 3] 23, which should be equal to the last value in row 4 [row 4] 23 [row 5] a blank row [row 6] 41, which should be equal to the last value in row 9 [row 7] 41, which should be equal to the last value in row 9 [row 8] 41, which should be equal to the last value in row 9 [row 9] 41 [row 10] a blank row If the next row [10] is a blank one, then current row [9] is defined to be the last value. Does anyone know how to code above condition in excel? Could anyone give me any suggestion please? Thank you in advance Eric |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to code it in excel?
set cell = cells(rows.count,1).End(xlup)
msgbox cell.Value -- Regards, Tom Ogilvy "Eric" wrote: Copy of message from Excel General Question - 9/26/2006 1:22 AM PST Does anyone know on how to code on following condition in this group? [row 1] a blank row [row 2] 10, which should be equal to the last value in row 3 [row 3] 10 [row 4] a blank row [row 1] a blank row [row 2] 23, which should be equal to the last value in row 4 [row 3] 23, which should be equal to the last value in row 4 [row 4] 23 [row 5] a blank row [row 6] 41, which should be equal to the last value in row 9 [row 7] 41, which should be equal to the last value in row 9 [row 8] 41, which should be equal to the last value in row 9 [row 9] 41 [row 10] a blank row If the next row [10] is a blank one, then current row [9] is defined to be the last value. Does anyone know how to code above condition in excel? Could anyone give me any suggestion please? Thank you in advance Eric |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to code it in excel?
Hello Eric,
If your numbers are in A1:A99, then write into B1: =IF(ISBLANK(A1),"",INDEX(A1:A$99,MATCH("Z","Z"&A1: A$99,)-1)) [Enter as array formula with CTRL + SHIFT + ENTER] and copy down to B99. HTH, Bernd |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel code convert to Access code - Concat & eliminate duplicates | Excel Programming | |||
do anybody have a sample code for executing excel macro from vb code?<eom | Excel Programming | |||
stubborn Excel crash when editing code with code, one solution | Excel Programming | |||
Excel XP VBA code to search all macro code in Excel module for specific search string criteria | Excel Programming | |||
Excel XP VBA code to search all macro code in Excel module for specific search string criteria | Excel Programming |