#1   Report Post  
Posted to microsoft.public.excel.misc
Bee Bee is offline
external usenet poster
 
Posts: 46
Default IF STATEMENT Range

Hello, I am trying to put a range in an if statement '0-50', how do I do this
please?
It's as follows:

=IF(AI7 'is between 1:50',(AB7*AI7/100),AI7)
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default IF STATEMENT Range

Use this:

=IF(and(AI71,AI7<50),(AB7*AI7/100),AI7)

Hope this helps.


"Bee" wrote:

Hello, I am trying to put a range in an if statement '0-50', how do I do this
please?
It's as follows:

=IF(AI7 'is between 1:50',(AB7*AI7/100),AI7)
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bee Bee is offline
external usenet poster
 
Posts: 46
Default IF STATEMENT Range

Thanks for that, perfect. Another question, do you know how to do a
conditional format for a cell that is <50 to display as % and if 50 show
just a decimal number. Thanks again.

"BriSwy" wrote:

Use this:

=IF(and(AI71,AI7<50),(AB7*AI7/100),AI7)

Hope this helps.


"Bee" wrote:

Hello, I am trying to put a range in an if statement '0-50', how do I do this
please?
It's as follows:

=IF(AI7 'is between 1:50',(AB7*AI7/100),AI7)
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default IF STATEMENT Range

You have a reply at your other post.

Bee wrote:

Thanks for that, perfect. Another question, do you know how to do a
conditional format for a cell that is <50 to display as % and if 50 show
just a decimal number. Thanks again.

"BriSwy" wrote:

Use this:

=IF(and(AI71,AI7<50),(AB7*AI7/100),AI7)

Hope this helps.


"Bee" wrote:

Hello, I am trying to put a range in an if statement '0-50', how do I do this
please?
It's as follows:

=IF(AI7 'is between 1:50',(AB7*AI7/100),AI7)
Thanks


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default IF STATEMENT Range

=if(and(ai71,ai7<50),(ab7*ai7)/100,ai7)

But I'm not sure what happens at 1 and 50.

You may want:

=if(and(ai7=1,ai7<=50),(ab7*ai7)/100,ai7)



Bee wrote:

Hello, I am trying to put a range in an if statement '0-50', how do I do this
please?
It's as follows:

=IF(AI7 'is between 1:50',(AB7*AI7/100),AI7)
Thanks


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default IF STATEMENT Range

Try this:

=IF(AND(AI7=1,AI7<=50),AB7*AI7/100,AI7)

--
Biff
Microsoft Excel MVP


"Bee" wrote in message
...
Hello, I am trying to put a range in an if statement '0-50', how do I do
this
please?
It's as follows:

=IF(AI7 'is between 1:50',(AB7*AI7/100),AI7)
Thanks



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
range in an IF statement Dorothy J Excel Worksheet Functions 9 January 12th 07 07:44 PM
IF statement with a range ricky Excel Worksheet Functions 8 October 26th 06 06:32 PM
Use a range name in VB with IF Then Else statement spydor Excel Discussion (Misc queries) 1 January 6th 06 01:20 AM
if statement with date range Theresa Excel Worksheet Functions 3 October 17th 05 06:03 PM
IF Statement with a range Phillycheese5 Excel Worksheet Functions 8 July 28th 05 08:03 AM


All times are GMT +1. The time now is 04:58 PM.

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"