Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Buffgirl71
 
Posts: n/a
Default Help with a formula - probably an "IF"

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default Help with a formula - probably an "IF"

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Buffgirl71
 
Posts: n/a
Default Help with a formula - probably an "IF"

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trevor Shuttleworth
 
Posts: n/a
Default Help with a formula - probably an "IF"

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default Help with a formula - probably an "IF"

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Buffgirl71
 
Posts: n/a
Default Help with a formula - probably an "IF"

That worked perfectly. Thanks so much.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
"Unable to set the Formula property of the Series class" with a tw PeterQ Charts and Charting in Excel 1 February 15th 06 07:37 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
"IF" formula returns zero or other incorrect number Pat K. Excel Worksheet Functions 6 December 6th 05 05:57 PM


All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"