Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have cells that look like this, sorted in this order:
A1 B1 B2 What I want B2 to be 2 1212 1212 3 1212 4 1212 4 1212 4 1212 2 3434 3434 3 3434 4 3434 4 3434 2 0000 0000 3 0000 4 0000 In B2 I want the value of B1, if A2 = 2, for the "2" record just above it (but not a consistent number of rows). I've shown what I want B2 to be above. Thanks very much for any help you can give me with a formula. If it's important, there is always one "2" record, one "3" record, and any number of inconsistent "4" records. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way:
B2: =IF(A2<"", A2, B1) Copy down as far as necessary. In article . com, "Buffgirl71" wrote: I have cells that look like this, sorted in this order: A1 B1 B2 What I want B2 to be 2 1212 1212 3 1212 4 1212 4 1212 4 1212 2 3434 3434 3 3434 4 3434 4 3434 2 0000 0000 3 0000 4 0000 In B2 I want the value of B1, if A2 = 2, for the "2" record just above it (but not a consistent number of rows). I've shown what I want B2 to be above. Thanks very much for any help you can give me with a formula. If it's important, there is always one "2" record, one "3" record, and any number of inconsistent "4" records. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That doesn't work in this example, because the number of blank rows
isn't consistent; I need to pull back the value only when the value in column A is literally "2", and I need to pull back the data for the row immediately preceding that is a "2". Thanks for your help. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try
=IF(A2=2,B2,C1) Regards Trevor "Buffgirl71" wrote in message oups.com... That doesn't work in this example, because the number of blank rows isn't consistent; I need to pull back the value only when the value in column A is literally "2", and I need to pull back the data for the row immediately preceding that is a "2". Thanks for your help. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Ah, I didn't parse your example correctly.
I'm still not sure how you get your value if the column A value =2. If you have to enter it manually, it seems like B2: =B1 copied down will suffice, right? A B 1 2 1212 2 3 =B1 3 4 =B2 4 4 =B3 5 2 3434 6 3 =B5 7 4 =B6 .... In article .com, "Buffgirl71" wrote: That doesn't work in this example, because the number of blank rows isn't consistent; I need to pull back the value only when the value in column A is literally "2", and I need to pull back the data for the row immediately preceding that is a "2". Thanks for your help. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That worked perfectly. Thanks so much.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is it possible? | Excel Worksheet Functions | |||
"Unable to set the Formula property of the Series class" with a tw | Charts and Charting in Excel | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
2 Nesting questions | Excel Worksheet Functions | |||
"IF" formula returns zero or other incorrect number | Excel Worksheet Functions |