Computing.Net > Forums > Office Software > excel formula condition

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

excel formula condition

Reply to Message Icon

Name: kwest
Date: November 7, 2009 at 15:31:34 Pacific
OS: Macintosh/PC
Product: Microsoft Excel: mac 2008 (mac)
Subcategory: Microsoft Office
Comment:

I have a client that needs a formula to calculate the total cost of meals on monday thru friday... easy enuff =(a2+b2+c2+d2+e2)

however, on certain days, shop is closed, and the client wants to put the text "closed" on these days. when I do this, my formula returns a #VALUE! error. is there a way around this?



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: November 7, 2009 at 17:57:02 Pacific
Reply:

Have your friend try either of these syntaxes...they should all work:

=SUM(A2:E2) for contiguous cells

or

=SUM(A2,B2,C2,D2,E2) for contiguous or non-contiguous cells

or

=SUM(A2,B2,C2:E2) for combinations of contiguous and non-contiguous cells

The SUM function will ignore cells that contain text.


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: excel formula condition

Excel formulas, conditional by valu www.computing.net/answers/office/excel-formulas-conditional-by-valu/4632.html

Excel Formula Help www.computing.net/answers/office/excel-formula-help/2797.html

Problems with Excel Formulas www.computing.net/answers/office/problems-with-excel-formulas/5502.html