Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2005

Tip: Looking for answers? Try searching our database.

if/then question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brendan Quirk - 30 Jan 2005 21:42 GMT
Here's what I hope is a pretty basic question.

I have 5 rows of inventory data.  They are the following:

A1: Product Name
A2: Product Cost
A3: Maximum Qty. Desired on Hand
A4: Minimum Qty. Desired on Hand
A5: Quantity on Hand

Basically, it looks like this:

Widget X |  25  |  10   |  4  | 5

I'd like to figure out how to write a formula for cell A6 that would tell me
the following:

If A5 is greater or equal to A4, then I'd like A6 = 0.

If A5 is less than A4, then I'd like A6 = (A3-A5) * A2.

Is this possible?

Many thanks, Brendan
Nick Hodge - 30 Jan 2005 21:59 GMT
Brendan

this should work

=IF(A5>=A4,0,(A3-A5)*A2)

Signature

HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.uk.ANDTHIS

> Here's what I hope is a pretty basic question.
>
[quoted text clipped - 20 lines]
>
> Many thanks, Brendan
Brendan Quirk - 31 Jan 2005 00:54 GMT
That did it! Many thanks for the quick and perfect advice!

> Brendan
>
[quoted text clipped - 26 lines]
>>
>> Many thanks, Brendan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.