#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Statement

I have a work sheet, 4 columns., d, e, f, g

I need to write an IF statement that fixes the following problem

Column D will always have a value in it.
IF column E has a value in it, but F, and G, do not, then value in column D*30
IF column F has a value in it, but E and G, do not, then value in column D*30
IF column G has a value in it, but E and F do not, then value in column D*30
IF column E and F has a value in it, but G does not, then value in column D*37
IF column E and G has a value in it, but F does not, then value in column D*37
IF column F and G has a value in it, but E does not, then value in column D*37

Is there anyway to write this formula? My problem is that the values in any
of these columns could be any positive number, or they could be blank. Any
suggestions would be great.

Sincerely,
Chris Lamutt

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 208
Default IF Statement

=CHOOSE( COUNT( E1:G1 ) + 1, "EMPTY", D1 * 30, D1 * 37, "FULL" )
--
Regards,
Luc.

"Festina Lente"


"Chris Lamutt" wrote:

I have a work sheet, 4 columns., d, e, f, g

I need to write an IF statement that fixes the following problem

Column D will always have a value in it.
IF column E has a value in it, but F, and G, do not, then value in column D*30
IF column F has a value in it, but E and G, do not, then value in column D*30
IF column G has a value in it, but E and F do not, then value in column D*30
IF column E and F has a value in it, but G does not, then value in column D*37
IF column E and G has a value in it, but F does not, then value in column D*37
IF column F and G has a value in it, but E does not, then value in column D*37

Is there anyway to write this formula? My problem is that the values in any
of these columns could be any positive number, or they could be blank. Any
suggestions would be great.

Sincerely,
Chris Lamutt

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
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
Can't add 7th IF statement to long formula. manxman Excel Worksheet Functions 7 June 8th 06 08:23 AM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


All times are GMT +1. The time now is 08:01 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"