# Excel/If Statement

Question
I have 4 columns of Golf score totals on Row 20. Column B totals 43, Column C totals 41, Column D totals 60, and Column E totals 21.   In Row 21, I am to show "1" for the winner's column and "0" for the other columns.

Row 21 should end up looking like this, B=0, C=0, D=0 and the winner, the lowest score for golf, E=1.  I have tried Min with If statements but to no avail.  Help!

If you've got 4 values in Row 1 (A1,B1,C1,D1):

4,6,2,7

Then in cell E1 use the MIN function:

=MIN(A1:D1)

That will give you the lowest value of those cells, in this case 2.

Now in Row 2 you can use a simple equality to determine who the winner is. In A2 put:

=A1=\$E\$1

Now AutoFill that across to column D. You'll get:

FALSE   FALSE   TRUE   FALSE

And now you can see who the winner is. You COULD use an IF function to get 1 or 0, but why bother? I cover all of this in my tutorials.

Be sure to visit my web site and watch my FREE 90-minute Microsoft Excel Video Tutorial

Cordially,
Richard Rost
599CD Computer Training
Questioner's Rating
 Rating(1-10) Knowledgeability = 10 Clarity of Response = 10 Politeness = 10 Comment Thank you for much - this solved my problem.

This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### Richard Rost

##### Expertise

 I am the author of The Complete Idiot's Guide to Excel 2010.   I am happy to answer any questions about Microsoft Excel. If you have an Excel problem, let me help you with it. Also, please be sure to check the Excel Tips & Tricks and Excel Tutorials sections of my web site.   You can also watch my complete Excel 2010 For Beginners tutorial online which is over 90 minutes of FREE videos and an eBook.

##### Experience

I have been using Microsoft Excel since the very early Windows 3.1 versions. I have been teaching Microsoft Excel in the classroom since 1994, and online through computer tutorials since 2002.

Organizations
I have been volunteering on AllExperts in the categories of Microsoft Access, Visual Basic, and Weight Loss for years.

Publications
I am the author of The Complete Idiot's Guide to Excel 2010. I have created a line of computer tutorials online at www.ExcelLearningZone.com and www.599CD.com/Excel.

Education/Credentials
Personally, I am self taught. I've learned everything I know from books and trial & error. If I don't know the answer, I know how to find it.

Past/Present Clients
I have over 20,000 happy clients worldwide.