ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formula within IF function (https://www.excelbanter.com/excel-discussion-misc-queries/33998-formula-within-if-function.html)

Shirley

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

Domenic

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


Barb R.

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


\VoG via OfficeKB.com\

Remove the " marks from your formula.

--
Message posted via http://www.officekb.com

Dana DeLouis

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




mckingston

formula within IF function
 
Thx to all ur posts-they are very*3 useful!!!!!!!


All times are GMT +1. The time now is 04:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com