Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10
Default Multiple IF statement

I am formatting cell D47 and wish the following IF conditions:-

D47 to read 2.00 unless D63175 but<3800 then to read 2.50, if D6 3800
but<4500 then read 3.00, if D64500 then read 3.5

How should this be written in the cell.

Many thanks in advance for your help.

Dave
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,480
Default Multiple IF statement

Hi Dave

=IF(AND(D63175,D6<=3800),2.5,
IF(AND(D63800,D6<=4500),3.0,
IF(D64500,3.5,2.0)))

I assumed you wanted the upper level included as part of the range in each
case, so I made it <=3800 etc.
Otherwise, values of 3800 and 4500 would be missed altogether.

--
Regards
Roger Govier

"Dave in Ampthill" wrote in
message ...
I am formatting cell D47 and wish the following IF conditions:-

D47 to read 2.00 unless D63175 but<3800 then to read 2.50, if D6 3800
but<4500 then read 3.00, if D64500 then read 3.5

How should this be written in the cell.

Many thanks in advance for your help.

Dave


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10
Default Multiple IF statement

Many thanks Roger, you've been a great help.

"Roger Govier" wrote:

Hi Dave

=IF(AND(D63175,D6<=3800),2.5,
IF(AND(D63800,D6<=4500),3.0,
IF(D64500,3.5,2.0)))

I assumed you wanted the upper level included as part of the range in each
case, so I made it <=3800 etc.
Otherwise, values of 3800 and 4500 would be missed altogether.

--
Regards
Roger Govier

"Dave in Ampthill" wrote in
message ...
I am formatting cell D47 and wish the following IF conditions:-

D47 to read 2.00 unless D63175 but<3800 then to read 2.50, if D6 3800
but<4500 then read 3.00, if D64500 then read 3.5

How should this be written in the cell.

Many thanks in advance for your help.

Dave



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Multiple IF statement


Other possibility

=lookup(d6,{0,3175,3800,4500},{2.0,2.5,3.0,3.5})


--
Pecoflyer

Cheers
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=39591

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
Multiple If statement John Gregory Excel Discussion (Misc queries) 8 October 10th 08 05:57 PM
Multiple if Statement? jeffmp21 Excel Discussion (Misc queries) 6 June 5th 08 07:49 PM
Multiple IF statement Kristen PS Excel Worksheet Functions 5 May 13th 08 10:05 PM
Multiple IF Statement John Excel Worksheet Functions 4 June 9th 07 02:33 PM
Multiple If Statement TamIam Excel Worksheet Functions 8 October 18th 06 08:55 PM


All times are GMT +1. The time now is 06:52 AM.

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"