#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
darkwood
 
Posts: n/a
Default IF Statement


What he means by "check" is that as you are writing an "IF" statement,
you have to say what you want the value to be if true, and what if is
it false. So if you say L5 = home and S5 = 10 then you are correct
with the formula as it is written. However, if L5 contains something
besides "home", you have to indicate in the formula what you want
returned as well. If you don't want anything, and want it to be blank,
just enter two sets of quotes.

so:

=IF(L5="home",S5-8,"") for a blank returned.

However, since you have 'home' listed, I assume you have another
location as well that you don't want to apply the (-8) to, and just
want it to equal the mileage field without any subtraction you'd use
this:

=IF(L5="HOME",S5-8,S5)

HTH

-Scott


--
darkwood
------------------------------------------------------------------------
darkwood's Profile: http://www.excelforum.com/member.php...o&userid=29948
View this thread: http://www.excelforum.com/showthread...hreadid=496415

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
IF Statement problem trixma New Users to Excel 3 September 27th 05 06:36 AM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement Brent New Users to Excel 3 April 29th 05 04:24 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM


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