Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default IF THEN function help needed!!

I am trying to set up an IF-THEN function that will handle recognizing a
number between 2 other numbers and cannot seem to get it to work. My current
formula looks like this:

IF(27%<=AA16<=27.9%, round(M16*0.01,2),0)

Can anyone help with this? Right now if I plug in 27.5% in cell AA16 I get
0. My goal is for this formula to calculate to the following answer:

If AA16 = 27.5%
If M16 = 46900
Answer = 469.00
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default IF THEN function help needed!!

You could try this:

=IF(INT(AA16)=27,ROUND(M16*.01,2),0)

This just checks the integer portion of the number in AA16. However, 27.91
would also be true in this case whereas your example would consider it false.

If that's a problem, then try:

=IF(AND(AA16=27,AA16<=27.9),ROUND(M16*.01,2),0)

HTH,
Elkar


"Karen" wrote:

I am trying to set up an IF-THEN function that will handle recognizing a
number between 2 other numbers and cannot seem to get it to work. My current
formula looks like this:

IF(27%<=AA16<=27.9%, round(M16*0.01,2),0)

Can anyone help with this? Right now if I plug in 27.5% in cell AA16 I get
0. My goal is for this formula to calculate to the following answer:

If AA16 = 27.5%
If M16 = 46900
Answer = 469.00

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default IF THEN function help needed!!

"Elkar" wrote in message
...
You could try this:

=IF(INT(AA16)=27,ROUND(M16*.01,2),0)


The Op's data was 27% so INT() will always return zero

I would suggest:

IF(FLOOR(AA16,1%)=27%,ROUND(M16*.01,2),0)

--
HTH

Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Function Needed! Please Help! Rashid Excel Worksheet Functions 3 April 20th 06 01:49 AM
Help needed with function Kevin Excel Worksheet Functions 2 January 28th 06 06:29 AM
Desperate Help needed with a function. Lori Excel Worksheet Functions 3 July 21st 05 03:19 AM
IF function help needed jmcclain Excel Worksheet Functions 2 February 23rd 05 04:33 PM


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