How does the Excel IF command work?

TrustPilot

starstarstarstarstar Excellent

Forum home » Topics » How does the Excel IF command work?

How does the Excel IF command work?

The Excel IF Command is one of Excel’s most useful functions.

The IF function allows automated responses based on a condition. The IF function will test a cell against a condition or logical test, and place one of two answers based on whether the condition has been met or not.

Once the formula has been applied to the first cell, the formula can then be copied to other cells regarding the formula. This process will speed up the time you spend working on the task and increase your efficiency which allows you to work on additional tasks in the day.

The Excel IF Command can be used in many business environments such as sales or finance. In a financial example it can be used to indicate when a share price is above or below a certain value.

An example in a sales commission environment, the IF command could be used to calculate the commission payments based on sales figures. For example, if the sales figure is more than 40,000 then the commission is 5%, if not they only get 3%.

For example, to test out the IF command:
Type the following into a blank worksheet.

Cell A1 contains the word 'Susan'
Cell A2 contains 53,000
Cell B1 contains the word 'David'
Cell B2 contains 33,000

To then apply the IF statement, enter the following information into cell A3:

=IF(A2>40000,A2*5%,A2*3%)

Logical Test: A2>40000
True: A2*5% - If the sales figure is more than 40,000
False: A2 *3% - If the sales figure is less than 40,000

The answer A3 should be £2,650 and will update dynamically if the number in A2 changes.

To save time, simply copy and paste A3 to the other commission cells and the commission will be automatically calculated.


Related forum posts:

Changing a Cell to Zero

Hi, Is there any way of making a cell to change to the value 0, if the formulae within it solves to a negative value? Thanks

Read forum post

 

Automatic number generation

Is there a way of generating automatic numbers / identifiers in Excel for each record created in a speadsheet? I would also like the number / identifier to have a specific format (i.e. 3 letters/year/3 digit number). Thanks.

Read forum post

 

IF statements

what is an if statement and how do i create one?

Read forum post

 

IF statements and nested formulas

Can you explain how if statements and nested formulas are used?

Read forum post

 

Excel IF command

how to use the IF commands

Read forum post

 

The IF Function

Did not fully understand how this function worked. Would like further information.

Read forum post

 

Excel IF statements

Hi, having a problem with IF statements and dates In column “D2” I have a date say 21/10/11, in column “E2” I want to return the words “Working After 24th Dec 2011 else “Left before 24th December 2011”. I wrote the following IF statement =IF(D2>=24/12/2011,"Working After 24th Dec 2011","Leaving Before 24th Dec 2011") But all columns say “Working After 24th Dec 2011” even those that have an end date before 24th Dec. What have I

Read forum post

 

Excel IF Formula

Hi I am using the following formula on one of our budget templates. =IF(F844>0,'42 INCOME'!B10,0) Problem is, it doesn't bring up any negative numbers where applicable. It only brings up postive numbers. Can you tell me what formula i can use to bring up negative numbers? Thanks Vicky

Read forum post

 

Adding numerical Values to drop down menus

Hi, Im trying to find out how to add values to to words contained in a drop down menu. Each drop down menu will have Yes or No selections (with the exception of a few, come to that if i cant figure it out by then) The value of Yes and No will be different in each coloum. A1 Yes value is 1, No value is 0 B1 Yes value us 2, No value is 0 C1 will equal 3 if both Yes, 1 if A1 Yes and B1 No, 0 if both No...You get the gist of it. The formula i have so far is (Formula placed in C1) =IF(A1=&

Read forum post

 

Regional Training & Development Adminstrator

I am currently working on developing our Excel spreadsheets so that we do not miss any training course deadlines. I am looking to design the 'best fit' spreadsheet. We can have over 150+ courses a year to co-ordinate from our spreadsheets with 4+ deadlines per course. Is there a way of logging on to a spreadsheet and having prompts which immediately display the nearest deadlines. Or a way you would recommend setting up a spreadsheet to best get this information eg> Course 1 Deadl

Read forum post

 

Other posts you might be interested in:

Nested IF statement

What is the maximum of nested IF statement used in one formula?

Read forum post

 

Creating formulas

I would like create a formula which will look at two columns and the current date and if the second column is greater than the first by less than 14 day it should do nothing but if it is greater then the first by more that 14 days to enter overdue in the next column.............can you advise me how to do this? I would also like to know if it is possible to use symbols such as a tick within formulas?

Read forum post

 

 

Live dates & prices

 

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


TrustPilot
TrustScore 9.6       1034 reviews