Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-03-2009, 12:32 PM
Love Excel Love Excel is offline
Registered User
 
Join Date: 14 Jun 2009
Location: SG
MS Office Version:Excel 2003
Posts: 6
Love Excel is becoming part of the community
Unhappy how do you create a double condition in excel

Please Register to Remove these Ads

Hi,

I am trying to set a constraint that for every kg of fish is eaten, 0.5kg of rice must be eaten.
A=Fish
B=Rice
Could anyone tell me how to set this constraint in excel to check

Thank you
Reply With Quote
  #2  
Old 07-03-2009, 02:45 PM
zbor's Avatar
zbor zbor is offline
Valued Forum Contributor
 
Join Date: 10 Feb 2009
Location: Croatia
MS Office Version:Excel 2007
Posts: 2,533
zbor is very confident of their ability zbor is very confident of their ability zbor is very confident of their ability zbor is very confident of their ability zbor is very confident of their ability
Send a message via MSN to zbor
Re: how do you create a double condition in excel

You can do this for example:

=IF(A1/B1=2;"OK";IF(A1/B1<2;"Need more fish";"Need more rise"))

or

=LOOKUP(A1/B1;{0;2;2,001};{"Need more fish";"OK";"Need more rise"})

(notice that both formula will return DIV/0 error if you don't enter number in B cell

(replace ; with , and , with . if needed)
__________________
"Relax. What is mind? No matter. What is matter? Never mind!"
Reply With Quote
  #3  
Old 07-03-2009, 04:52 PM
Love Excel Love Excel is offline
Registered User
 
Join Date: 14 Jun 2009
Location: SG
MS Office Version:Excel 2003
Posts: 6
Love Excel is becoming part of the community
Re: how do you create a double condition in excel

actually i am trying to use solver to solve a equation
I have fish price at $1.23
rice price at $1.24
And I set the criteria, that every 1kg of rice is eaten, 0.5 kg of fish must be eaten.
I also set a criteria that u must eat a minimum of 2kg of rice and 1kg of fish.

I am not sure how to use solver to set the constraint for below.
Any help appreciated.

Thank you.
Reply With Quote
  #4  
Old 07-04-2009, 02:29 AM
zbor's Avatar
zbor zbor is offline
Valued Forum Contributor
 
Join Date: 10 Feb 2009
Location: Croatia
MS Office Version:Excel 2007
Posts: 2,533
zbor is very confident of their ability zbor is very confident of their ability zbor is very confident of their ability zbor is very confident of their ability zbor is very confident of their ability
Send a message via MSN to zbor
Re: how do you create a double condition in excel

Book19.xls

See this.....
__________________
"Relax. What is mind? No matter. What is matter? Never mind!"
Reply With Quote
  #5  
Old 07-04-2009, 09:04 PM
Love Excel Love Excel is offline
Registered User
 
Join Date: 14 Jun 2009
Location: SG
MS Office Version:Excel 2003
Posts: 6
Love Excel is becoming part of the community
Re: how do you create a double condition in excel

Sorry maybe I not specified enough in my question

Actually this is my scenario
I have fish price at $1.23
rice price at $1.24
Fish has 1 unit of fat and 2 unit of carbohydrate
Rice has 2 unit of fat and 3 unit of carbohydrate
3 criteria being set as below:
Every 1kg of rice is eaten, 0.5 kg of fish must be eaten.
U must eat a minimum of 2kg of rice and 1kg of fish.
U must also get a minimum of 3 unit of fat and 4 unit of carbohydrate.

I am not sure how to use solver to set the constraint for below.
Any help appreciated.

Thank you.
Reply With Quote
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump