Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Shirley
 
Posts: n/a
Default formula within IF function

How do I use a formula within the IF function? What I want to do is check if
a number is less than or equal to an amount, calculate one thing, if it is
not, calculate another. I tried this: IF(B21<=150,"=B21*E32","150*E32)
But I only get text returned.

Please help!!
Thanks
--
Shirley
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=IF(B21<=150,B21*E32,150*E32)

Hope this helps!

In article ,
"Shirley" wrote:

How do I use a formula within the IF function? What I want to do is check if
a number is less than or equal to an amount, calculate one thing, if it is
not, calculate another. I tried this: IF(B21<=150,"=B21*E32","150*E32)
But I only get text returned.

Please help!!
Thanks

  #3   Report Post  
Barb R.
 
Posts: n/a
Default

Try

=IF(B21<=150,B21*E32,150*E32)

I assume that B21, and E22 are numeric.

"Shirley" wrote:

How do I use a formula within the IF function? What I want to do is check if
a number is less than or equal to an amount, calculate one thing, if it is
not, calculate another. I tried this: IF(B21<=150,"=B21*E32","150*E32)
But I only get text returned.

Please help!!
Thanks
--
Shirley

  #4   Report Post  
\VoG via OfficeKB.com\
 
Posts: n/a
Default

Remove the " marks from your formula.

--
Message posted via http://www.officekb.com
  #5   Report Post  
Dana DeLouis
 
Posts: n/a
Default

Maybe a slight variation:

=E32*MIN(B21,150)

HTH.
--
Dana DeLouis
Win XP & Office 2003


"Shirley" wrote in message
...
How do I use a formula within the IF function? What I want to do is check
if
a number is less than or equal to an amount, calculate one thing, if it is
not, calculate another. I tried this: IF(B21<=150,"=B21*E32","150*E32)
But I only get text returned.

Please help!!
Thanks
--
Shirley





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default formula within IF function

Thx to all ur posts-they are very*3 useful!!!!!!!
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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
function of "+" in the formula "=+(B19/50)*B10 josh66six Excel Discussion (Misc queries) 4 February 23rd 05 09:54 PM
Can I use TODAY Function in a formula that will not change it the. Tucson Guy Excel Discussion (Misc queries) 1 December 19th 04 09:32 AM
How do I create a multi formula IF function in Excel? Wazza Excel Worksheet Functions 8 November 8th 04 09:25 PM


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