LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 59
Default Nested If statement to find greater than but less than numbers

Hi,

I had this formula that works well:

=IF(M20=1.5,"3",IF(AND(M20=1,M20<1.5),"2",IF(AND (M20=0.5,M20<1),"1",IF(AND(M20=0.25,M20<0.5),"0. 5",IF(M20<=0.25,"0.5","error")))))

so I thought I will add another cell for it to check in the AND part so
the formula looked like this:

=IF(AND(M19=1.5,Q19=3),"3",IF(AND(M19=1,M19<1.5 ,Q19=2,Q19<3),"2",IF(AND(M19=0.5,M19<1,Q19=1,Q1 9<2),"1",IF(AND(M19=0.25,M19<0.5,Q19=0.5,Q19<1), "0.5",IF(AND(M19<=0.25,Q19<0.5),"0.5","error") ))))

But now it just returns "error"

Have I dont something illegal here?

Why cant it just after looking at m19 cell, just look at q19 also
before displaying its result?

Cheers for advice,

Aaron.

 
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
A Macro to find missing serial numbers in a column Khoshravan Excel Discussion (Misc queries) 9 August 6th 06 10:37 AM
How do I find the 12 highest numbers in a row of 52 numbers Johnny Excel Worksheet Functions 3 July 8th 06 11:58 PM
Find all numbers in database that end in... eschaet Excel Worksheet Functions 3 April 28th 06 04:38 AM
find sum in list of of numbers Jim Thomlinson Excel Discussion (Misc queries) 3 January 4th 06 09:58 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 01:20 AM.

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"