Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John Sullivan
 
Posts: n/a
Default IF, THEN statement

I have 4 columns, B, C, D, E. Would like a statement that would calculate
this way: if cell C1 has a "1" in it, put the value of what appears in B1
into a resultant cell D1. But if cell C1 has a "2" in it, put the value of
what appears in B1 into a resultant cell E1. Example is that B1 has a figure
such as 25. Cell C1 has the value 1, so D1 would result in 25. But if B1 has
that same figure of 25 and C1 has the value of 2, then E1 would result in 25.
Thanks!
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

You need multiple formulas

D1: =IF(C1=1,B1,"")
E1: =IF(C1=2,B1,"")

--
HTH

Bob Phillips

"John Sullivan" wrote in message
...
I have 4 columns, B, C, D, E. Would like a statement that would calculate
this way: if cell C1 has a "1" in it, put the value of what appears in B1
into a resultant cell D1. But if cell C1 has a "2" in it, put the value of
what appears in B1 into a resultant cell E1. Example is that B1 has a

figure
such as 25. Cell C1 has the value 1, so D1 would result in 25. But if B1

has
that same figure of 25 and C1 has the value of 2, then E1 would result in

25.
Thanks!



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
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
How to calculate a sum as one outcome of an IF statement barb in NC Excel Worksheet Functions 2 March 31st 05 08:01 PM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM


All times are GMT +1. The time now is 08:24 PM.

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

About Us

"It's about Microsoft Excel"