Help with a formula - probably an "IF"

B

Buffgirl71

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.
 
B

Buffgirl71

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.
 
J

JE McGimpsey

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

....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top