Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default IF OR Excel Formula Issue

Having trouble putting a formula together.

I have the following formula which works:

Scenario : $d$d = either Weight or Unit or Unknown (of an ingredient)
e8= is a quantity number ( either in grams or units, of an
ingredient. eg 100 or 1)
Raw data is in Nutrition!$b$6:$g$70

The following formula works so far:

f8 ( which is the no. of calories)=if($d$d="weight",e8/100,e8)*vlookup(c8,
Nutrition!$b$6:$g$70,3,false)

But I also want to add to it that

If e8(quantity)=0 or blank or invalid then "qty?" should appear in the f8
cell

The following formula works:
f8=if(or(e8=0,istext(e8)),"qty?",vlookup(c8,Nutrit ion!$b$6:$g$70,3,false))

But I cant seem to combine the two statements to so that

Am completely stuck here, need help asap.

lozzam

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF OR Excel Formula Issue

See response to your earlier posting. Easier to keep the ball rolling if you
stay within your original thread.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"lozzam" <u28344@uwe wrote in message news:685506426bfec@uwe...
Having trouble putting a formula together.

I have the following formula which works:

Scenario : $d$d = either Weight or Unit or Unknown (of an ingredient)
e8= is a quantity number ( either in grams or units, of
an
ingredient. eg 100 or 1)
Raw data is in Nutrition!$b$6:$g$70

The following formula works so far:

f8 ( which is the no. of calories)=if($d$d="weight",e8/100,e8)*vlookup(c8,
Nutrition!$b$6:$g$70,3,false)

But I also want to add to it that

If e8(quantity)=0 or blank or invalid then "qty?" should appear in the f8
cell

The following formula works:
f8=if(or(e8=0,istext(e8)),"qty?",vlookup(c8,Nutrit ion!$b$6:$g$70,3,false))

But I cant seem to combine the two statements to so that

Am completely stuck here, need help asap.

lozzam



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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Trouble writing an excel formula. hbb2699 Excel Worksheet Functions 3 June 8th 06 06:36 PM
Recurring Excel Formula error - multiple users affected! Rayo K Excel Discussion (Misc queries) 3 April 11th 06 02:22 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"