Welcome to YLOAN.COM
yloan.com » microsoft » Microsoft Excel Functions MasterClass - the Conditional If Function Explained
Online Business Site Promotion Web misc Affiliate-Revenue Auctions Audio-Streaming Autoresponders Blogging-Rss Email-Marketing Ezine-Publishing Forums Internet-Marketing List-Building PPC-Advertising Podcasting SEO Spam-Blocker Traffic-Building Video-Streaming Web-Design Web-Development Web-Hosting Domain Name soreness web analysis vinyl mlm searching media info spyware access microsoft outlook farmville

Microsoft Excel Functions MasterClass - the Conditional If Function Explained

Microsoft Excel Functions MasterClass - the Conditional If Function Explained


The IF function in Excel takes the following format:

=IF(Whatever the condition is, What to do if it's true, What to do if it's false)

Here's an example. Supposing that you have:


The name of each person in your company in column A

The number of coffees they drink each day in column B

You want to pick out the caffeine addicts by displaying the word CAFFEINE in columnC if they drink more than 5 copies of coffee a day; otherwise you'll leave this cell blank.

The first thing to note about this problem is that - like so often in Excel - the best answer isn't actually to use an IF function. In this case you could just apply conditional formatting to column B to make the coffee-heads appear in a different colour. Howerver ...

To solve this problem, we want to enter the following formula in column C:

=IF(Number of coffees drunk > 5 THEN display "Caffeine" ELSE display nothing

Unfortunately that's not Excel syntax, so we just need to rewrite this in a format that Excel will understand to get:

= IF ( B1>5 , "Caffeine" , "" )

Note that I've put the spaces in to make this easier to read, but if you type this into Excel you'll need to remove them all.

You should now have the word Caffeine displayed in cell C1 if the person in row 1 drank more than 5 cups of coffee; otherwise, the cell will appear empty. Allthat you now need to do is to copy this formula down - the easiest way to do this is:

Click on the cell containing the formula (the one you've just entered).

Position the mouse pointer at the bottom right corner (a black cross will appear).

Double-click on this to copy the formula down to the cells below.

Each cell in column C should now contain the right word.

One final thought- what would happen if you wanted to grade the coffee-drinkers more subtly? Suppose anyone who drinks up to 4 coffees a day is "OK", 5-8 marks you as a "Problem drinker" and 9+ implies that you're an addict.

One answer to this problem is to nest one IF function within another:

=IF(B1
Microsoft Outlook 2007 543 03007 Microsoft Help Compress or shrink my huge pst file used by Microsoft Outlook Microsoft 70-667 Questions And Answers Microsoft Office 2010- Features And Editions Get Certified With Microsoft Courses Simplify the Problems to Get the Microsoft Driver Updates Microsoft Outlook Crash - Quick Helping Guide! Statistics Say Outlook Is Greatly Popular Many Users Convert Nsf To Pst Microsoft Microsoft 70-681 Dumps Timely Microsoft Support Made My Day Microsoft Outlook Support: A Juncture For Solution To Your Problems Microsoft 70-512 Test Dumps
print
www.yloan.com guest:  register | login | search IP(216.73.216.125) California / Anaheim Processed in 0.023978 second(s), 7 queries , Gzip enabled , discuz 5.5 through PHP 8.3.9 , debug code: 40 , 2247, 559,
Microsoft Excel Functions MasterClass - the Conditional If Function Explained Anaheim