Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JBS
 
Posts: n/a
Default 3 ifs in one statement

I am trying to produce a formula that does the following:

If the value of (a+b+c+d) = 1 then cell e must show 500
if the value of (a+b+c+d) = 2 then cell e must show 1000
if the value of (a+b+c+d) <= 3 then cell e must show 1000+(((a+b+c+d)-2)*300)
How do I nest the ifs correctly to get this.

Thank you
JBS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default 3 ifs in one statement

=IF(SUM(A1:D1)=1,500,IF(SUM(A1:D1)=2,1000,1000+(SU M(A1:D1)-2)*3000))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"JBS" wrote in message
...
I am trying to produce a formula that does the following:

If the value of (a+b+c+d) = 1 then cell e must show 500
if the value of (a+b+c+d) = 2 then cell e must show 1000
if the value of (a+b+c+d) <= 3 then cell e must show

1000+(((a+b+c+d)-2)*300)
How do I nest the ifs correctly to get this.

Thank you
JBS



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JBS
 
Posts: n/a
Default 3 ifs in one statement

Thank you. This is much neater and works better than what I was struggling
with.


"Bob Phillips" wrote:

=IF(SUM(A1:D1)=1,500,IF(SUM(A1:D1)=2,1000,1000+(SU M(A1:D1)-2)*3000))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"JBS" wrote in message
...
I am trying to produce a formula that does the following:

If the value of (a+b+c+d) = 1 then cell e must show 500
if the value of (a+b+c+d) = 2 then cell e must show 1000
if the value of (a+b+c+d) <= 3 then cell e must show

1000+(((a+b+c+d)-2)*300)
How do I nest the ifs correctly to get this.

Thank you
JBS




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Richard Buttrey
 
Posts: n/a
Default 3 ifs in one statement

I think there was a typo in Bob's response. Check this if you've
copied and pasted Bob's string. The last multiplier should be 300 not
3000.

Rgds



On Thu, 29 Jun 2006 01:55:02 -0700, JBS
wrote:

Thank you. This is much neater and works better than what I was struggling
with.


"Bob Phillips" wrote:

=IF(SUM(A1:D1)=1,500,IF(SUM(A1:D1)=2,1000,1000+(SU M(A1:D1)-2)*3000))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"JBS" wrote in message
...
I am trying to produce a formula that does the following:

If the value of (a+b+c+d) = 1 then cell e must show 500
if the value of (a+b+c+d) = 2 then cell e must show 1000
if the value of (a+b+c+d) <= 3 then cell e must show

1000+(((a+b+c+d)-2)*300)
How do I nest the ifs correctly to get this.

Thank you
JBS





__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
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
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
IF Statement Brent New Users to Excel 3 April 29th 05 04:24 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


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