Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default adding range of numbers to if statement with three criteria

Hi everyone,

Existing if statement

=IF(AL12=0,1,IF(AL12<0,"q","p"))

I would like to amend this to say that if AL12 is between -5 and 5 return 1
if less than -5 return q and greater than 5 return p.

Is this at all possible?

Thanking you in advance
--
Mifty
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default adding range of numbers to if statement with three criteria

Hi Mifty

Hope this will do it:

=IF(AL12<-5,"q",IF(AL125,"p",1))


"Mifty" schreef in bericht
...
Hi everyone,

Existing if statement

=IF(AL12=0,1,IF(AL12<0,"q","p"))

I would like to amend this to say that if AL12 is between -5 and 5 return
1
if less than -5 return q and greater than 5 return p.

Is this at all possible?

Thanking you in advance
--
Mifty



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 418
Default adding range of numbers to if statement with three criteria

"Mifty" wrote:
Existing if statement
=IF(AL12=0,1,IF(AL12<0,"q","p"))

I would like to amend this to say that if AL12 is between -5 and 5 return 1
if less than -5 return q and greater than 5 return p.


=if(AL12<-5, "q", if(AL125, "p", 1))
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default adding range of numbers to if statement with three criteria

Works like a dream !

Thank you Frederik :-)
--
Mifty


"Frederik" wrote:

Hi Mifty

Hope this will do it:

=IF(AL12<-5,"q",IF(AL125,"p",1))


"Mifty" schreef in bericht
...
Hi everyone,

Existing if statement

=IF(AL12=0,1,IF(AL12<0,"q","p"))

I would like to amend this to say that if AL12 is between -5 and 5 return
1
if less than -5 return q and greater than 5 return p.

Is this at all possible?

Thanking you in advance
--
Mifty




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default adding range of numbers to if statement with three criteria

Brilliant :-) Thank you

--
Mifty


" wrote:

"Mifty" wrote:
Existing if statement
=IF(AL12=0,1,IF(AL12<0,"q","p"))

I would like to amend this to say that if AL12 is between -5 and 5 return 1
if less than -5 return q and greater than 5 return p.


=if(AL12<-5, "q", if(AL125, "p", 1))

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
Adding a range of numbers associated with various dates missin44 Excel Discussion (Misc queries) 3 January 18th 07 03:31 PM
adding numbers in a specific range of values Tophaw Excel Discussion (Misc queries) 2 December 27th 06 04:04 PM
Single statement database/range processing with criteria DoctorG Excel Worksheet Functions 2 May 20th 06 08:44 PM
IF than statement in a range of numbers? please help? AC man Excel Discussion (Misc queries) 10 January 9th 06 10:38 PM
How do I use a range of numbers in an if statement? pbeattie Excel Worksheet Functions 2 October 10th 05 10:36 PM


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