Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
juvena
 
Posts: n/a
Default creating formula using if function

I confused about creating formula using if function for the condition below.

Labor costs for items with material costs of at least $100 but less than
$500 are estimated at 50% of material costs.

I tried everything but did not work please help

(for example A1 contains a material cost) =if(A1=100<500,A1*0.50) isn't
that correct?

  #2   Report Post  
Paul Sheppard
 
Posts: n/a
Default creating formula using if function


juvena Wrote:
I confused about creating formula using if function for the condition
below.

Labor costs for items with material costs of at least $100 but less
than
$500 are estimated at 50% of material costs.

I tried everything but did not work please help

(for example A1 contains a material cost) =if(A1=100<500,A1*0.50)
isn't
that correct?


Hi juvena

Try this =IF(AND(A1=100,A1<=500),A1*0.5,"")


--
Paul Sheppard


------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=479027

  #3   Report Post  
 
Posts: n/a
Default creating formula using if function

"juvena" wrote:
(for example A1 contains a material cost) =if(A1=100<500,A1*0.50)
isn't that correct?


It is "correct" in the syntactic sense. But it certainly does not
mean what you think it does.

(It also does not mean what I think it should!)

Besides, it is almost never a good idea to omit the "else" part --
the 3rd parameter of an IF() function, what Excel calls the
"value_if_false" part. If you do, you can get mixed results: a
numerical value in one case (A1*0.50), a boolean value (FALSE)
in another case.

I confused about creating formula using if function for the condition below.
Labor costs for items with material costs of at least $100 but less than
$500 are estimated at 50% of material costs.


And what are the labor costs when material costs are less than
$100 or not less than $500?

The formula you should want is something like:

=IF(A1 < 100,
A1*(factor if labor less than $100),
IF(AND(100<=A1,A1<500),
A1*50%,
A1*(factor if labor not less than 500) ) )

I wrote that the "hard way" so that you could see how the
AND() function works -- the solution you are probably looking
for. But it could be written somewhat more simply, namely:

=IF(A1 < 100,
A1*(factor if labor less than $100),
IF(A1 = 500,
A1*(factor if labor not less than 500),
A1*50%) )


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
formula within IF function Shirley Excel Discussion (Misc queries) 5 June 8th 07 07:50 PM
Need Help: 'sheets' function with a variable in a formula livin Excel Worksheet Functions 2 September 7th 05 10:27 PM
undefined function error when creating xls pivot from mdb qry andrew Excel Worksheet Functions 0 July 29th 05 07:26 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
function of "+" in the formula "=+(B19/50)*B10 josh66six Excel Discussion (Misc queries) 4 February 23rd 05 09:54 PM


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