Using IF function in Excel: formula examples for numbers, text, dates, blank cells

IF is one of the most popular and useful functions in Excel. You use an IF statement to test a condition and to return one value if the condition is met, and another value if the condition is not met.

In this tutorial, we are going to learn the syntax and common usages of Excel IF function, and then will have a closer look at formula examples that will hopefully prove helpful both to beginners and experienced users.

Excel IF function - syntax and usage

The IF function is one of logical functions that evaluates a certain condition and returns the value you specify if the condition is TRUE, and another value if the condition is FALSE.

The syntax for IF is as follows:

IF(logical_test, [value_if_true], [value_if_false])

As you see, the IF function has 3 arguments, but only the first one is obligatory, the other two are optional.

  • logical_test (required) - a value or logical expression that can be either TRUE or FALSE. In this argument, you can specify a text value, date, number, or any comparison operator.

    For example, your logical test can be expressed as or B1="sold", B1<12/1/2014, B1=10 or B1>10.

  • value_if_true (optional) - the value to return when the logical test evaluates to TRUE, i.e. if the condition is met.

    For example, the following formula will return the text "Good" if a value in cell B1 is greater than 10: =IF(B1>10, "Good")

  • value_if_false (optional) - the value to be returned if the logical test evaluates to FALSE, i.e. if the condition is not met.

    For example, if you add "Bad" as the third parameter to the above formula, it will return the text "Good" if a value in cell B1 is greater than 10, otherwise, it will return "Bad":
    =IF(B1>10, "Good", "Bad")

Excel IF function - formula example

IF function - things to remember!

Though the last two parameters of the IF function are optional, your formula may produce unexpected results if you don't know the underlying logic beneath the hood.

  1. If value_if_true is omitted

    If the value_if_true argument is omitted (i.e. there is only a comma following logical_test), the IF function returns zero (0) when the condition is met. Here is an example of such a formula:

    =IF(B1>10,, "Bad")

    In case you don't want your Excel IF statement to display any value when the condition is met, enter double quotes ("") in the second parameter, like this: =IF(B1>10, "", "Bad"). Technically, in this case the formula returns an empty string, which is invisible to the user but perceivable to other functions.

    The following screenshot demonstrates the above approaches in action, and the second one seems to be more sensible:
    IF formulas with the value_if_true argument omitted

  2. If value_if_false is omitted

    If you don't care what happens when the specified condition is not met, you can omit the 3rd parameter in your formulas, which will result in the following.

    If the logical test evaluates to FALSE and the value_if_false parameter is omitted (there is just a closing bracket after the value_if_true argument), the IF function returns the logical value FALSE. It's a bit unexpected, isn't it? Here is an example of such a formula:

    =IF(B1>10, "Good")

    Putting a comma after the value_if_true argument forces your IF formula to return 0, which doesn't make much sense either:

    =IF(B1>10, "Good",)

    And again, the most reasonable approach is to put "" in the third argument, in this case you will have empty cells when the condition is not met:

    =IF(B1>10, "Good", "")

    IF formulas with the value_if_false argument omitted

  3. Get the IF function to display logical values TRUE or FALSE

    For your Excel IF formula to display the logical values TRUE and FALSE when the specified condition is met and not met, respectively, type TRUE in the value_if_true argument. The value_if_false parameter can be FALSE or omitted. Here's a formula example:

    =IF(B1>10, TRUE, FALSE)
    or
    =IF(B1>10, TRUE)
    an example of the IF function that displays logical values TRUE or FALSE

    Note. For your IF statement to return TRUE and FALSE as the logical values (Boolean values) that other formulas can recognize, make sure you don't enclose them in double quotes. A visual indication of a Boolean is middle align in a cell, as you see in the screenshot above.

    If you want "TRUE" and "FALSE" to be usual text values, enclose them in "double quotes". In this case, the returned values will be aligned left and formatted as General. No Excel formula will recognize such "TRUE" and "FALSE" text as logical values.

  4. IF formula to perform a math operation and return a result

    Instead of returning certain values, you can get your IF formula to test the specified condition, perform a corresponding math operation and return a value based on the result. You do this by using arithmetic operators or other functions in the value_if_true and /or value_if_false arguments. Here are just a couple of formula examples:

    Example 1: =IF(A1>B1, C3*10, C3*5)

    The formula compares the values in cells A1 and B1, and if A1 is greater than B1, it multiplies the value in cell C3 by 10, by 5 otherwise.

    Example 2: =IF(A1<>B1, SUM(A1:D1), "")

    The formula compares the values in cells A1 and B1, and if A1 is not equal to B1, the formula returns the sum of values in cells A1:D1, an empty string otherwise.

Using the IF function in Excel - formula examples

Now that you are familiar with the IF function's syntax, let's look at some formula examples and learn how to use it in real-life scenarios.

Excel IF statement for numbers: greater than, less than, equal to

The use of the IF function with numeric values is based on using different comparison operators to express your conditions. You will find the full list of logical operators illustrated with formula examples in the table below.

Condition Operator Formula Example Description
Greater than > =IF(A2>5, "OK",) If the number in cell A2 is greater than 5, the formula returns "OK"; otherwise 0 is returned.
Less than < =IF(A2<5, "OK", "") If the number in cell A2 is less than 5, the formula returns "OK"; an empty string otherwise.
Equal to = =IF(A2=5, "OK", "Wrong number") If the number in cell A2 is equal to 5, the formula returns "OK"; otherwise the function displays "Wrong number".
Not equal to <> =IF(A2<>5, "Wrong number", "OK") If the number in cell A2 is not equal to 5, the formula returns "Wrong number "; otherwise - "OK".
Greater than or equal to >= =IF(A2>=5, "OK", "Poor") If the number in cell A2 is greater than or equal to 5, the formula returns "OK"; otherwise - "Poor".
Less than or equal to <= =IF(A2<=5, "OK", "") If the number in cell A2 is less than or equal to 5, the formula returns "OK"; an empty string otherwise.

The screenshot below demonstrates the IF formula with the "Greater than or equal to" logical operator in action:
the IF formula with the "Greater than or equal to" logical operator.

Excel IF examples for text values

Generally, you write an IF statement with text using either "equal to" or "not equal to" operator, as demonstrated in a couple of IF examples that follow.

Example 1. Case-insensitive IF formula for text values

Like the overwhelming majority of functions, IF is case-insensitive by default. What it means for you is that logical tests for text values do not recognize case in usual IF formulas.

For example, the following IF formula returns either "Yes" or "No" based on the "Delivery Status" (column C):

=IF(C2="delivered", "No", "Yes")

Translated into plain English, the formula tells Excel to return "No" if a cell in column C contains the word "Delivered", otherwise return "Yes". At that, it does not really matter how you type the word "Delivered" in the logical_test argument - "delivered", "Delivered", or "DELIVERED". Nor does it matter whether the word "Delivered" is in lowercase or uppercase in the source table, as illustrated in the screenshot below.
Case-insensitive IF formula for text values

Another way to achieve exactly the same result is to use the "not equal to" operator and swap the value_if_true and value_if_false arguments:

=IF(C2<>"delivered", "Yes", "No")

Example 2. Case-sensitive IF formula for text values

If you want a case-sensitive logical test, use the IF function in combination with EXACT that compares two text strings and returns TRUE if the strings are exactly the same, otherwise it returns FALSE. The EXACT functions is case-sensitive, though it ignores formatting differences.

You use IF with EXACT in this way:

=IF(EXACT(C2,"DELIVERED"), "No", "Yes")

Where C is the column to which your logical test applies and "DELIVERED" is the case-sensitive text value that needs to be matched exactly.
Case-sensitive IF formula for text values

Naturally, you can also use a cell reference rather than a text value in the 2nd argument of the EXACT function, if you want to.

Note. When using text values as parameters for your IF formulas, remember to always enclose them in "double quotes".

Example 3. Excel IF with wildcard (partial match)

If you want to base your condition on a partial match rather than exact match, an immediate solution that comes to mind is using wildcard characters (* or ?) in the logical_test argument. However, this simple and obvious approach won't work. Many functions accept wildcards, but regrettably IF is not one of them.

A solution is to use IF in combination with ISNUMBER and SEARCH (case-insensitive) or FIND (case-sensitive) functions.

For example, if No action is required both for "Delivered" and "Out for delivery" items, the following formula will work a treat:

=IF(ISNUMBER(SEARCH("deliv",C2)), "No", "Yes")
IF formula for text values with partial match

We've used the SEARCH function in the above formula since a case-insensitive match suits better for our data. If you want a case-sensitive match, simply replace SEARCH with FIND in this way:

=IF(ISNUMBER(FIND("text", where to search)), value_if_true, value_if_false)

Excel IF formula examples for dates

At first sight, it may seem that IF formulas for dates are identical to IF statements for numeric and text values that we've just discussed. Regrettably, it is not so.

Unlike many other Excel functions, IF cannot recognize dates and interprets them as mere text strings, which is why you cannot express your logical test simply as >"11/19/2014" or >11/19/2014. Neither of the above arguments is correct, alas.

Example 1. IF formulas for dates with DATEVALUE function

To make the IF function recognize a date in your logical test as a date, you have to wrap it in the DATEVALUE function, like this DATEVALUE("11/19/2014"). The complete IF formula may take the following shape:

=IF(C2<DATEVALUE("11/19/2014"), "Completed", "Coming soon")

As illustrated in the screenshot below, this IF formula evaluates the dates in column C and returns "Completed" if a game was played before Nov-11. Otherwise, the formula returns "Coming soon".
An example of the IF formula with the DATEVALUE function

Example 2. IF formulas with TODAY() function

In case you base your condition on the current date, you can use the TODAY() function in the logical_test argument of your IF formula. For example:

=IF(C2<DATEVALUE("11/19/2014"), "Completed", "Coming soon")

Naturally, the Excel IF function can understand more complex logical tests, as demonstrated in the next example.

Example 3. Advanced IF formulas for future and past dates

Suppose, you want to mark only the dates that occur in more than 30 days from now. In this case, you can express the logical_test argument as A2-TODAY()>30. The complete IF formula may be as follows:

=IF(A2-TODAY()>30, "Future date", "")

To point out past dates that occurred more than 30 days ago, you can use the following IF formula:

=IF(TODAY()-A2>30, "Past date", "")
Advanced IF formulas for future and past dates

If you want to have both indications in one column, you will need to use a nested IF function like this:

=IF(A2-TODAY()>30, "Future date", IF(TODAY()-A2>30, "Past date", ""))
A nested IF formula for dates

Excel IF examples for blank, non-blank cells

If you want to somehow mark your data based on a certain cell(s) being empty or not empty, you can either:

  • Use the Excel IF function in conjunction with ISBLANK, or
  • Use the logical expressions ="" (equal to blank) or <>"" (not equal to blank).

The table below explains the difference between these two approaches and provides formula example.

Logical test Description Formula Example
Blank cells ="" Evaluates to TRUE if a specified cell is visually empty, including cells with zero length strings.

Otherwise, evaluates to FALSE.

=IF(A1="", 0, 1)

Returns 0 if A1 is visually blank. Otherwise returns 1.

If A1 contains an empty string, the formula returns 0.

ISBLANK() Evaluates to TRUE is a specified cell contains absolutely nothing - no formula, no empty string returned by some other formula.

Otherwise, evaluates to FALSE.

=IF(ISBLANK(A1), 0, 1)

Returns the results identical to the above formula but treats cells with zero length strings as non-blank cells.

That is, if A1 contains an empty string, the formula returns 1.

Non-blank cells <>"" Evaluates to TRUE if a specified cell contains some data. Otherwise, evaluates to FALSE.

Cells with zero length strings are considered blank.

=IF(A1<>"", 1, 0)

Returns 1 if A1 is non-blank; otherwise returns 0.

If A1 contains an empty string, the formula returns 0.

ISBLANK()=FALSE Evaluates to TRUE if a specified cell is not empty. Otherwise, evaluates to FALSE.

Cells with zero length strings are considered non-blank.

=IF(ISBLANK(A1)=FALSE, 0, 1)

Works the same as the above formula, but returns 1 if A1 contains an empty string.

The following example demonstrates blank / non-blank logical test in action.

Suppose, you have a date in column C only if a corresponding game (column B) was played. Then, you can use either of the following IF formulas to mark completed games:

=IF($C2<>"", "Completed", "")

=IF(ISBLANK($C2)=FALSE, "Completed", "")

Since there are no zero-length strings in our table, both formulas will return identical results:
The IF formula for blank / non-blank cells

Hopefully, the above examples have helped you understand the general logic of the IF function. In practice, however, you would often want a single IF formula to check multiple conditions, and our next article will show you how to tackle this task. In addition, we will also explore nested IF functions, array IF formulas, IFEFFOR and IFNA functions and more. Please stay tuned and thank you for reading!

You may also be interested in:

4,376 comments to "Using IF function in Excel: formula examples for numbers, text, dates, blank cells"

  1. Peter says:

    My formula is used to do education tracking for work:

    {=MAX(IF('Raw Data'!$A$2:$A$19997=$C$31,(IF('Raw Data'!$I$2:$I$19997='Course Names'!E47,'Raw Data'!$L$2:$L$19997))))}

    It worked great when there was only one course per requirement. Now there are 4+ course names per requirement. I was wondering if it is possible to modify the 'Course Names'!E47 part of the formula to have multiple courses to draw the most current date from.

    I tried 'Course Names'!E47:E53 But it keeps giving me a #N/A error now. Unless I drop it down to one course. I suppose I could list every single course but that could get quite large and I try to keep the readout to one page for ease of use for the manager.

    I am using Excel 2016.

    ANy help would be greatly appreciated.

  2. olejohn says:

    Hi,
    i need to highlight the entire row if A2 has text value containing an even number at the end of it (basically it's alphanumeric). eg.. if A2 has "hrr-102" where 2 at the end is even, then it should highlight the entire row. thanks experts for your ansers.

  3. Salihin Jumahat says:

    hi,

    my data: =MAX((IF(H15=H15,I15,"")),(IF(K15=K15,L15,"")),(IF(N15=N15,O15,"")),(IF(Q15=Q15,R15,"")))
    they show zero*
    i want the max number and show the alphabet rather than the number.

    DATA:
    22-001(H15) A(I15)
    22-008(K15) UR(L15)
    22-010(N15) NA(O15)
    22-032(Q15) AC(R15)

  4. OGAL ISAAC says:

    Hello check this formula out and guide with the right one
    =IF(A3="printing",=500,IF(A3="photocopying",=200,IF(A3="scanning",=1000)))

  5. Salihin Jumahat says:

    hi
    how do i create a command that

    it will update my latest

    example
    latest; 22-030
    day1 22-001
    day2 22-015
    day3 22-023
    day4 22-030
    day5
    day6

  6. Bhavya says:

    Hi

    I want help in writing an advanced function which gives the output in week number when the existing inventory specified in the data will run out. The column header specify product title, existing inventory quantity, Sales projections from WK 1 to WK 52. The rows have the product name, and the corresponding values to the headers. Please refer to the below data for reference:

    Product A, Qty 52, WK 1 - 10 units, WK 2 - 10 units, WK 3 - 10 units, WK 4 - 12 units, WK 5 - 10 units
    Product B, Qty 65, WK 1 - 5 units, WK 2 - 10 units, WK 3 - 10 units, WK 4 - 10 units, WK 5 - 10 units, WK 6 - 10 units, WK 7 - 10 units

    I want a the output as a column in which it specifies the WK num in which the existing qty is running out.
    The answer should be like WK 5 for Product A and WK 7 for product B.

    Is this possible?

    Regards
    Bhavya Naidu

  7. Nuwan says:

    Hi There,
    I need your help to fix this formula. if a colleague works more than 365 days but less than 1800 days that the number of days should multiply by 0.02. but if the colleague works more than 1095 days and less than 1800 days, then that number of days should multiply by 0.04. Above 1825 days then must multiply by 0.06
    if he works more than 2190 days then should multiply by 0.08.

    Highly appreciate your guidance
    Thanks
    Nuwan

  8. Jerome says:

    Hello!

    Im trying to place multiple functions in single formula, however, I have a roadblock which hopefully we can clear,

    My current formula is:
    =IF(I2=G2,"Completed Same Day Plotted",IF(I2G2,"Didn't Complete On Time")))

    Legend:
    I2 - Date Completed (this data is extracted and vlooked up from another report)
    G2 - Plotted Date

    The problem Im encountering is, in the source file of the Date Completed, if it appears blank, it will automatically place 0/01/1900 which will trigger the Completed Before Plotted Date.

    I'm trying to add a formula that would generate a result stating if date is 0/01/1900, it means the person is currently finishing the course or it can be reflecting as "In Progress".

    How do I do that?

  9. samuel poracan says:

    What is the formula if I want a cell to input the following:
    If cell is
    001 input COGON
    002 input DICAYAS
    003 input DIWAN
    004 input GALAS
    005 input GULAYON
    006 input LUGDUNGAN
    007 input MINAOG
    008 input OLINGAN
    009 input ESTACA_(POB.)
    010 input BIASONG_(POB.)
    011 input BARRA_(POB.)
    012 input CENTRAL_(POB.)
    013 input MIPUTAK_(POB.)
    014 input PUNTA
    015 input SAN_JOSE
    016 input SANGKOL
    017 input SANTA_FILOMENA
    018 input SICAYAB
    019 input SINAMAN
    020 input TURNO
    021 input SANTA_ISABEL

  10. Lorna Allen says:

    Hi I am trying to do the following with dates and it seems the if(or) does not recognise the dates as a value

    =If(or(j4="",N2<J4),G4,K4)

    J4=date
    N2=date
    G4=£
    K4=£

    I am basically trying to say if J4 date is blank then use selling price G4, If month date N2 is less than the date J4 then use new selling price K4

    any help would be appreciated

    Lorna

  11. David Boyanich says:

    This was awesome. I wanted to track the status of an inventory of items that move from one status to another status as they are delivered, used, and readied for removal. This will assist in visualizing the lifespan of an object by using nested if statements and using the cell value as the final "if not true" statement to keep the value present when if has a calculation change but only on the date that the change takes place. This is interesting. my formula does require the file to be opened each day, so that the date change will trigger the status calculation in the field. I am using conditional statements to color code the cells based on the values 1,2 or 3 which is assigned to the cell of the date on that line of the object based on its status which is chosen off criteria as I alter the cell information of the objects as they change status by entering the date of the change of that status, and using a null cell to keep unused rows from calculation.

    Works great.

  12. RK says:

    A1 is “Full”, B1 is “Not Full”, C1 returns “Full”
    A2 is “Full”, B2 is “Full”, C2 returns “Full”
    A3 is “Half Full”, B3 is “Full”, C3 returns “Half Full”
    A4 is “Not Full”, B4 is “Half Full”, C4 returns “Half Full”
    A5 is “Not Full”, B5 is “Not Full”, C5 returns “Not Full”

    As long as there is Half Full in either col A or col B, col C will return “Half full”

    Can anyone help? I can’t find a formula to return 3 end results (full/not full/half full)

  13. iRFAN says:

    Hi i have 4 letter words. In which any word starting with letter DL should show as LCC otherwise GCC . i am getting the result with following formula

    =IF(ISNUMBER(SEARCH("DL",B55)), "LCC", "GCC")

    but problem is that, if DL is third or fourth letter even though i m getting the result as LCC which i dont want

    Kindly help

  14. Julian Flanagan says:

    Hi,
    my very simple formula, continues not to work;
    =if(cell ref= Yes,""", "follow up")
    for example
    =if(e5=yes, "", "follow up")

    Help :)
    Thanks Julian

  15. kim hubbard says:

    Hello, can someone help me please? I need to do an IF function but where true i need it to equal another cells contents, is this possible? every time i do it like this =IF(E2>0,"A2","") it keeps pulling back the words A2 and not the actual contents of A2... I may be being dumb...

  16. CARLA POPE-LAWRENCE says:

    I want to use an IF function to calculate taxes of 1% on an income more than 6250 per month.

  17. Sebastián Andrade says:

    Hi! I Have the next if statement:
    =IF(C4=F4, "[] ", (IF(C4=F5, "[] ", (IF(C4=F6, "[]", "Error, please choose a correct platform")))))

    Between "[]" I want to put a cell value like this [&D5] but excel is printing the string "[&D5]".
    How can I insert the value of a cell inside a string of an if statement?

    Thank your for the post, was so usefully!

  18. Rahul Sharma says:

    Hello. I have a query. I want to use a simple IF function and print a true or false result.

    =IF(E22>=J22,"Person A won INR ","Person B won INR ")

    In the above formula, in the statement "Person A won INR " after INR I want to print the value of the result (E22-J22)

    For example, if E22 is 200 and J22 is 100, It should print "Person A won INR 100"

  19. Arley says:

    Sir, let me apologize ahead of time for the incoherent attempt to describe the problem...

    I am attempting to have two columns that contain specific text (drop down selection) yield a result based on the multiple combination of options. I am trying to get develop a formula that uses the specific text with multiple variations results in generating new text based on the two cells. Looking below you can see there are multiple combinations that will results in RAC 1, RAC 2, RAC 3, and RAC 4.

    In short the goal is to select the probability and Severity rating then the RAC Code will auto-populate based on the available combinations.

    Probability Severity RAC Code
    I Catastrophic (A) Frequent RAC 1
    I Catastrophic (B) Likely RAC 1
    (II) Critical (A) Frequent RAC 1
    (I) Catastrophic (C) Occasional RAC 2
    (I) Catastrophic (D) Seldom RAC 2
    (II) Critical (B) Likely RAC 2
    (II) Critical (C) Occasional RAC 2
    (III) Moderate (A) Frequent RAC 2
    (III) Moderate (B) Likely RAC 2
    (III) Moderate (C) Occasional RAC 2
    I Catastrophic (E) Unlikely RAC 3
    (II) Critical (D) Seldom RAC 3
    (IV) Negligible (A) Frequent RAC 3
    (II) Critical (E) Unlikely RAC 4
    (III) Moderate (D) Seldom RAC 4
    (III) Moderate (E) Unlikely RAC 4
    (IV) Negligible (B) Likely RAC 4
    (IV) Negligible (C) Occasional RAC 4
    (IV) Negligible (D) Seldom RAC 4
    (IV) Negligible (E) Unlikely RAC 4

    This was my attempt however it populates the RAC without both cells populated.
    =IFS(AND(AND(H2="(I) Catastrophic",I2="(B) Likely"),AND(H2="(I) Catastrophic",I2="(A) Frequent"),OR(H2="(II) Critical",I2="(A) Frequent")),"RAC 1",(OR(AND(H2="(I) Catastrophic",I2="(C) Occasional"),AND(H2="(I) Catastrophic",I2="(D) Seldom"),AND(H2="(II) Critical",I2="(B) Likely"),AND(H2="(II) Critical",I2="(C) Occasional"),AND(H2="(III) Moderate",I2="(A) Frequent"),AND(H2="(III) Moderate",I2="(B) Likely"),OR(H2="(III) Moderate",I2="(C) Occasional"))),"RAC 2",(OR(AND(H2="(I) Catastrophic ",I2="(E) Unlikely"),AND(H2="(II) Critical",I2="(D) Seldom"),OR(H2="(IV) Negligible",I2="(A) Frequent "))),"RAC 3",(OR(AND(H2="(II) Critical",I2="(E) Unlikely"),AND(H2="(III) Moderate",I2="(D) Seldom"),AND(H2="(III) Moderate",I2="(E) Unlikely"), AND(H2="(IV) Negligible",I2="(B) Likely"),AND(H2="(IV) Negligible",I2="(C) Occasional"),AND(H2="(IV) Negligible",I2="(D) Seldom"),OR(H2="(IV) Negligible",I2="(E) Unlikely "))),"RAC 4")

  20. Ngalaku says:

    Hi Albeit Team,

    Thanks for a great article. I have a range of data showing a merchant's transactions performed through a platform that we'll call FastExpress broken down in a sample below (the original data has over 10,000 entries):

    PAID_LOCAL STATUS CURRENCY AMOUNT COUNTRY_CODE CARD COMPANY
    01/04/2019 success USD 1,956.00 US Mastercard
    02/04/2019 failed USD 2,390.57 GH Mastercard
    02/04/2019 success USD 1,201.06 GB AmEx
    02/04/2019 success USD 5,201.06 GB AmEx

    The Card company takes it fees, FastEx takes theirs and then pays the merchant
    The Card company & FastEx has the below fees:

    Mastercard = 1% for local transactions (done in US) and 1.5% for foreign transactions if fees are below $200 then 2% and 2.5% respectively for fees equal to or above $200

    AmEx = 1.2% for local transactions (done in US) and 1.7% for foreign transactions if fees are below $200 then 2.2% and 2.7% respectively for fees equal to or above $200

    FastEx = 0.8% for local transactions (done in US) and 1.3% for foreign transactions if fees are below $200 then 1.8% and 2.3% respectively for fees equal to or above $200

    Please note that fees are capped at $180 maximum for local transactions

    and would like calculate how much is due to pay the Card Company, how much for FastEx and the net payment to the merchant
    Not sure if the IF function would best suit this computation as every attempt kept getting confusing and complex.

    Hoping to hear from you.
    Thanks!

  21. Maja M says:

    Hi.
    I am trying to create a formula with this information:

    If Date A - Date B (check-in and check-out date for guests) are lower than 20.6.2022 or higher than 31.8.2022 the statement is true, value should be "low" if they are between those dates (so higher than 20.6 and lower than 31.8) then "high".

    I tried:
    =IF(AND(B4=DATEVALUE("31.8.2022"), D4=DATEVALUE("31.8.2022")), "low", "high")
    But it doesn't really work. Help would be apreciated.
    Thanks in advance.

      • Maja M says:

        Hi, me again :)
        Your solution worked. Thank you.

        But what if I want to make it even more complicated.
        Instead of 2 "seasons" I want to use 3.

        So for example.
        1.4. - 20.5.2022 = low
        21.5 - 30.6.2022 = mid
        1.7 - 31.8.2022 = high
        1.9 - 30.9 = mid
        1.10 - 31.10 = low again

        I tried with IFS but it gets complicated because it has to check 2 times or maybe I'm just useless when it comes to this.
        Or maybe it can't be done.
        I would appreciate the help.
        Thanks in advance.

  22. Anonimous says:

    Hi! Do you have any propositions for a formula that would both work for extracting the name and surname from these rows in a singe cell

    21-Feb-2022 requested by Suvarna, Rashmita21-Feb-2022 completed by dbgURL provided just too long with the coding to accept
    17-Feb-2022 Requested by Chacko, Alphonsa21-Feb-2022 Completed by SPVersion Update Request
    21-FEB-2022: Request by Alonso Nunez, Marta21-FEB-2022: Completed by BOT

    For instance, should extract Suvarna, Rashmita as a result from the first row

  23. Talat Nawaz says:

    if the amount is 350000 than bonus 100 and than amount is 351000 per thousand 1 plus 350000=100 and 351000= 101, 353000= 103

  24. Naveed says:

    I need the formula Like ( Block code B-218 in sheet 3 times and amount 100 x 3 = 300 ) now another cell have different block code and values i need if block code B-218 has no payment or not found then give Outstanding if the all data is there then calculate all amount sum 300 however these value and block code in different cell.

  25. Tony says:

    Please I would like to know how I can set an automated text on one excel sheet if a value is found in another sheet. If a value is found in sheet one, then I should get a text as ''done'' on the other sheet where that value is.

  26. BALDEV M C says:

    PLEASE HELP ME ON BELOW MENTIONED FORMULA:-
    A B C D E F G
    1 NO. NAME PAN TEL NO. PERSON ADRESS PROOF EMAIL ID
    2 1 BALDEV ABCDE12345F 99999 AMIT DDEGE12345C BALDEV@G.COM
    3 2 SURESH CDEFG12345A 88888 RAKESH CCCCC12345C SURESH@G.COM
    4 3 AMIT DDEGE12345C 77777 SURESH CDEFG12345A AMIT@G.COM
    5 4 DEEPAK AAAAA12345A 66666 MAHESH BBBBB12345B DEEPAK@G.COM
    6 5 MAHESH BBBBB12345B 55555 DEEPAK AAAAA12345A MAHESH@G.COM
    7 6 RAKESH CCCCC12345C 44444 BALDEV ABCDE12345F RAKESH@G.COM

    Formula Answer
    =VLOOKUP(C2,$C$2:$G$7,4,FALSE) DDEGE12345C

    NOTE:- I Neen Answer as BALDEV@G.COM [EMIAL ID]

  27. Chaudhary Hamza Akhtar says:

    I am trying to apply a formula to the cell if a specific cell contains specific text like D8 contains the total amount of project order and E8 contains the status of order ether it is completed canceled or under revision. In F8, I want to use IF Formula in such a way that if E8=completed then it will apply the formula to get the value of 80% of the D8 Our Actual Profit, rest 20% is our cost of work) but if the text is not equal to completed then the value should be 0. How can it be possible? I am trying this formula but getting error (=IF(E8=Completed,"(D8/100)*80", "0")).

    Thanks.

  28. Will says:

    Is it possible to use IF Function (or what other function) on my case?
    If value is less than or equal 0 type "True" but if greater than it will just show the number as is? Thanks

  29. Shafi says:

    Hello sir,

    Project status of Open and closed using conditional format was done. Now i want to conclude all these in a overall project status like if all closed it shows closed, if any one open , it shows Open...Like that,,,pls help me

  30. David says:

    I am trying to set up an IF where it check a cell to see if an ‘X’ is there. I can set up for it to check for numbers, but if I put =IF(A1=‘X’,1,0) it gives me an error code.

  31. Jonas says:

    Hi,

    it is possible to write a formula for this task.

    In A1 I have text "v:part1:neg:vn:undef:neutr|būti=nebūtina" and so on everytime with ending "=text". I want that formula would type that "text" into B1. Text in all the lines is different.

    Thank you.

  32. Antoinette de Beer says:

    Hi.

    I need to do a formula.

    I have the following columns:

    Status, Date offer accepted, actual start date, Client driven hold, requisition cancel date.

    In the status column, we have the following on a dropdown list (all different colours)
    Filled Not Yet Started
    Closed
    Did Not Fill
    Partially Filled
    On Hold
    Cancelled

    I need to do a formula where it will automatically choose one of the options on the dropdown (above) by inputting a date in the column and change to that colour on the status column.

  33. Ankitkumar Hemraj Dhingra says:

    Hi Sir,

    I am facing a challenge to come to find a formula for the below issue. I hope if you can help me sort it out.

    I have lot of data in word format (its the syllabus for children) and I want to convert the same in Excel format to make it attractive to children. I used Left, MID, Right formulas, but the last word some times come incompletes in the sentence, do you know what can be done to skip the incomplete word in the end of the sentence and to get that in the next line.

    I know it doesn't looks straight forward, but whenever you have a solution, it would be appreciated if you would share it with me. Thanks in advance.

  34. Rob Steward says:

    Good evening,

    I am in grad school and we had a test that asked if the following formula was wrong. =IF($A1="Yes","1","0")

    I put this in excel and gave it a set of data under column A and went from row 1-10 using yes and no. The formula worked correctly, however, I am told I was wrong and the formula wouldn't work because you are not allowed to put quotation marks on numbers in an IF statement.

    Is not using quotations on numbers in an IF statement his opinion or is it a fact? If it is fact, then why does the formula still work with the given data set?

    • Hello!
      The quotes mean that the number is written as text. Your formula will return the number as text. The numbers in quotes follow the syntax of the IF function and are not an error in using it. However, keep in mind that with these numbers you will not be able to perform mathematical calculations, since they are already text. However, there is no prohibition in Excel to use quotes with numbers.

  35. § says:

    why
    =IF(A1;"text";"") - returns "text" if a1 has any data and blank if a1 is blank

    but

    =IF(AND(A1;DAY(A1)1);"text";"") - returns "text" if a1 is blank or has data, and blank only if day(a1) is 1

    =IF(AND(A1"";DAY(A1)1);"text";"") - works as intended

    what am i missing?

  36. GOPI says:

    Hai Sir,

    i need a formula for Marks to percentage,

    if the percentage is below 1% mark is 5

    if the percentage is 1% to 3% mark is 10

    if the percentage above 3% to 5% mark is 15

    if the percentage above 5% mark is 20....

  37. Flick says:

    I'm trying to come up with a formula that will input words, so if a number is below 30 it will say "within 30 days then if it's between 30-365 it will say "within 12 months and anything over 365 will be blank. so far I can do the first part but I'm not sure how to add another condition.

    =IF(E6<30, "within 30 days")

  38. Lars says:

    I want to make a formula that goes something like this

    =if(value>blank(G3:L3 add 80 to M3)

    Sorry I'm a real novice in excel. :-(

    Hope somebody can help me out.

    \Lars

  39. jan says:

    hi, i am trying to do a formula where the following occurs

    if the balance is greater than 37500 (say 50,000) then the excess 12500 needs to be multiplied by 40% and the original 37500 needs to be multiplied by 20%

    if its less than 37500 then only that balance needs to be multiplied by 20%

    i have tried a few IF formulas but they only do part of the task

  40. Muhammad adnan says:

    HI,
    can anyone help me to set a formula with data validate I have three conditions in my data validation list Present Absent and Paid Leave which is denoted With P, A, and PL, what I want when my leave balance is equal to zero and then I select PL then popup message appeared no leave balance

  41. ANAND KUMAR JHA says:

    A B C D
    TOTAY

    346 INV-0354 30/06/2021 18901.52 =+IF(TODAY-B346>90<180,D346,0)
    347 INV-0355 30/06/2021 1330.20
    348 INV-0356 30/06/2021 2861.50

    Please Help On This Function and suggest me correct formula

  42. Abraham Crowe says:

    I am Trying to Use the Value(Text) in Cell E to determine the the condition in cell I to read (Pass, Fail) based on the Value(numerical) in field G. Example. IF E = Gram, Eight, Quarter, Half and G Numerical Value fits a given field then I = Pass or Fail. The Value in E will Determine if the Value in G is True. The True/Pass parameters for G will be Gram >=1.08 ,=3.7, =7.27, =14.16, <=14.4. As long as Cell G Falls Between these ranges for the appropriate value in Cell E then Cell I should show Pass. IF outside these then Fail.

  43. tara says:

    I want to write an if formula that if the cell has a number >0 to return a certain value, if the cell has text to return it as zero.

    Example I have a time card Monday = 8 , Tuesday= FO, Wednesday = 8, Thursday =8, Friday = 8. I am trying to say everyday the person works they get an extra 2 minutes of pay. currently I have multiple if functions stating =if cell >0, 2,0 but the cell with the FO text is getting the true statement.

  44. D.B. says:

    Hello,

    i need a formula, that says: IF =H3-J3>0, and iF =H3-J3<0,121 (then it is ok),
    but: IF =H3-J30,121 (then rise or lower the G3 cell so it can be in the parameters from 0 to 0,121).

    If this is possible.

  45. Leah Adams says:

    Hello,

    While creating a time sheet that will auto calculate an invoice amount I have tried the above, referencing the "IF formula to perform a math operation and return a result".

    My data comes from a drop down list. I want the particular cell to say "ok, if this cell says "client A", then do this math formula in this other cell". The problem is, each of the names in my drop down list corresponds to a different percentage rate to multiply the payrate by in order to get the bill rate..make sense? So if the worker had x hours working for client A I want to be able to choose client A from the drop down list, manually enter the pay rate for that employee, and then have the sheet calculate the OT pay rate, regular bill rate, OT bill rate and total it all at the bottom to show what the invoice should be. I have all of the other work done, I just cannot seem to get past this part, and I wonder if I am trying to get Excel to do too much with too little. Please help.

    Here is how I have entered the formula.

    Client A Client B Client C pay rate
    =IF(AND(OR('Dropdown Lists'!A30,'Dropdown Lists'!A34,'Dropdown Lists'!A50)), N17 + N17*45%)

  46. David says:

    Hello,

    Is it possible to make a formula so that IF cell A is Province ( Ontario, Alberta, Yukon, Manitobia ....) then multiply cell B Number with cell C (2%,3%,9%.... ?

    basically trying to calculate taxes depending on province.

  47. Aria says:

    Hello,

    Is it possible to use a formula that says if CO or CM then 8?
    I'm keeping a score at work with my coworkers and how many days they've worked and how many days they've had pto (CO) or medical (CM). i need the formula to work for 30-31 entries per persona (the days of the month) and i need something when i put cm or co in the table to return 8 back as in hours not worked. is it possible? am i making any sense?

  48. Jenn says:

    Forecasting spreadsheet: There are start and end dates for each project. I want the corresponding dated cells to color fill based on if they fall between the start and end dates. If I change the date, I want it to automatically change the fill. No fill if outside of dates. Ex: Start 2/25/2021 End 8/30/2021. Cells dated 2/25/2021 to 8/30/2021 will be filled. If I change date, it will change fill.

    =IF($K39="TBD",2,IF(AND($L39=AH$1),IF($G39="OH",1,5),0))

  49. Cassandra Acosta says:

    I'm trying to write a formula where if b4 is $14000 and is greater than c4 which is $10000 then the amount in c4 ($10000) needs to be displayed in d4. Could you please offer some assistance.

    Thank you

  50. mazlan says:

    Hi,

    I need help in Excel cell. I want a result from 2 conditions. if the cell i type 5 the answer is 100 and if i type 10 the anwer is 300 on the same cell. how to do using IF or other formula?

  51. Shougata Bose says:

    Is it possible to get substracted value with suffix/test.
    to be precise,
    i want to get the following,

    10:00 PM-04:00 PM=06:00 hrs
    after subtraction i get 06:00, but not with hrs. I want to get with hrs "suffix".
    thanks

  52. Shougata Bose says:

    I want to do the following work with IF function,
    If(A2=A-620,"Bose",""); can i do it.
    here A-620 is Mr. Bose's ID number.

  53. khoro Avhavhoni Tshivhula says:

    please help

    if a2 is >1 check if the date on b2 is > date on a1 and return yes if all statements are true no if false

  54. Thir says:

    How do I do something like an IF with a random test and one of the outputs is the same random like this:

    =IF(random_number>0.5,same_random_number,0)

    I hope you know what I'm saying cause I don't.

  55. Jay says:

    HI,

    I want to make a formula in which the value of A1 is less than or equal to 10, A2 will show "1" but if A1 is greater than 10 say 12 for example the excess 2 will multiplied to 0.5 then A2 will be 10+(X*0.5)/A1

    =IF(A1>=10,"10+0.5X"&FIXED(A1-10,0),1)

  56. Natnael says:

    Hi,
    i need a formula to do the following calculations:
    IF A2 and A3 are blank then to return blank but if there are values greater than zero to multiply A2*A3

  57. Anonymous says:

    (auto result req)
    Packing sr no no of box
    D1 to D2 2
    D3 to d5 3
    D5 to D9 4
    as per above example i want auto sum in excel for packing sr no

  58. Lloyd says:

    I need help with the below given formula. It has two sells to chose from. Cell AE5 is a date. The output required is taht if the date in AE% is lower than today then output cell should read "Note Due", However if the other cell that is AF5 is blank then output required is "Not Received" and if it is not blance the the output required is "Received"

    If the date criteia is satisfied then i do not want further output of "Not Received" or "Received"

    =IF(AND(AE5<TODAY(),"Not Due"),IF(AND(ISBLANK(AF5)),"Not Received","Received"))

    Requesting to please help.

      • Lloyd says:

        Dear Mr. Trifuntov,
        Thank you for your revert. You have made it amazingly simple. Sincerely appreciate. It fits well and resolves my query with exception to scenerio under option 4. The final formula i am using is:
        =IF(AE5>TODAY(),"Not Due",IF(ISBLANK(AF5),"Not Received","Received"))

        In the outputs below Amount is AD5 , Date due on is AE5, Received on is AF5 and output cell is the column marked Status that is AG5. Under option 4 we receive the amount before the due date. We wanted to give a preference that if the amount is received before due date then output should show "Received" instead of showing "Not Due". Would it be possible to incorporate such preference in the formula.

        Output 1
        Amount Date Status
        Due On Received On
        200,000 27-10-21 Not Received

        Output 2
        Amount Date Status
        Due On Received On
        200,000 27-10-21 28-10-21 Received

        Output 3
        Amount Date Status
        Due On Received On
        200,000 30-11-21 Not Due

        Output 4
        Amount Date Status
        Due On Received On
        200,000 30-11-21 29-10-21 Not Due

  59. Mathew says:

    Hi, i am trying to create an IF function that when you have typed "DONE", the exact date when the word was typed will be reflected on another cell. Whilst when "ONGOING" is typed, the date shown will be the date today, and will still continue only until the word DONE is typed. Thanks for the help.

  60. Chris Wong says:

    Hi,

    URGENT

    I am in urgent need to a formula to help me update a current file with new COGS and RRP pricing.

    But not all articles under a certain category need to be updated. So if I filtered original file to a specific category and did a VLOOKUP, will any data on not filtered rows change also if row numbers are not in running order and skips rows?

    Basically, I only want to update some articles with new data and retain existing data for those articles not on new data file.

    Thanking you.

    Chris

  61. Moamen says:

    what if I want to use VLOOKUP but the value is a specific word in the cell
    I mean the formula have to find text first and then make it value

  62. Robert says:

    Hi, I am tracking 'aging overdue invoices', and I am creating an IF statement formula where it finds the total per days outstanding. My database output provides the days outstanding and many ROWS I get the text "NULL". All overdue days list correctly on second column with current formula. How can I insert the TEXT "NULL" on "column B" Aging Bucket when "Column A" reads NULL?

    Here is my current formula inserted on "Column "Aging Bucket" ROW "B2":

    =IF(A2>90,"91-120 Days Past Due ",IF(A2>60,"61-90 Days Past Due",IF(A2>15,"16-30 Days Past due",IF(A2>-0.1,"0-15 Days Past Due","0 Current"))))

    My current data output:

    Column A

    Days_Overdue
    NULL
    NULL
    280
    19

    Column B

    Aging Bucket
    181-365+ Days Past Due
    181-365+ Days Past Due
    181-365+ Days Past Due
    0-30 Current

  63. MUBANIBASHA says:

    Hi

    Please could someone help me I am trying to create the following

    EX:
    If M2 is less or equal to 0.01-0.99 return the text in cell N2 "0"

    EX:

    iF M2 is less 12 return the N2 "12" and above 12, 13 14 is return N2 12,13,14.

  64. steven says:

    hi, i'd like to ask more about this

    How should I type if the value is between 1-200, it types 40%;
    201-300 type 15%;
    301-600 type 10%;
    601-900 type 5%

    Thank you

  65. Alison says:

    Hi,
    I'm trying to find the right function to give me the following.
    For any price that is a full number, give me back 'reg price', ex. 5.00
    for any price ending with .98, give me back 'mkdn price', ex. 4.98.

    Can anyone help?
    Thanks,
    Alison

  66. Bradley Rowe says:

    Hello,

    I'm using an IF function so that if the ranking in table A is either 9, 10 or 11, we shall output the performance from another corresponding, yet separate table of data and leave blank if otherwise.

    The formula looks like:
    =IF(P166=9,AP166,"")&IF(P166=10,AP166,"")&IF(P166=11,AP166,"")

    This has worked to the point where the correct corresponding performance data has been outputted, however, these are in decimal format and it will not allow me to change these to a percentage format (despite allowing me to select the 'percentage option', nothing changes). Furthermore, I cannot alter the number of decimal points that the newly outputted data is displayed to.

    As the data is essentially the same, I thought this might not be too big of an issue. However, when I go to find the average of the 3 outputted performances, I get the error message:
    #DIV/0!
    Upon further digging, I found that when I go to simply sum up the three outputs, It gives me zero (when this shouldn't be the case).

    It's almost as if the IF function output isn't being recognised by excel despite being visible (and correct) on my screen.

    Any help is greatly appreciated, thanks!

  67. Natalie B says:

    Hi, I'm trying to use an IF function with an email address.

    Example: =If(J3=123,name@domain.com,IF(j3=4567,anothername@domain.com,0))

    I've tried using " " around the email addresses, but nothing works.

    Thanks,

  68. Mario says:

    Hello,

    I am unsure if this is possible though any assistance is appreciated.

    I have cell B2 with the value 4 (YVL)

    I am trying to write a formula that says IF(B2<10&" (YVL)","over","shift").

    Is this possible?

    Thank you in advance

  69. Dusan says:

    Hi guys, i need help with something. I checked this text and cant find out if something like i need can be done in excel or not...

    For example, i have 12 values in dropdown menu in a cell (data validation) and i would like if i can set up something that when i change value from dropdown menu, excel can input predefined text (2 options only) in predetermined field.

    For example, if i select P-3340 from dropdown menu, i would like for excel to change cell below into From well.

    Can something like that be done? I actually dont need eny calculations, just that when i select something from dropdown menu, it changes next cell or two. I do a lot of repetitive reports and this would save a ton of time.

  70. Ana says:

    I'm trying to writ and IF statement that compares 2 cells with dates in them.

    IF( F4= A$1,B$1,M3)
    A1=a date pulled in via a VLOOKUP formula and is dynamic
    F4=09/15/2021
    F5=F4+1
    F6=F5+1
    ect.

    I tried the following:

    =IF(DATEVALUE(F4)=DATEVALUE(A$1),B$1,M3)

    But I got an Error, any suggestions?

  71. Nia says:

    Hi How about if example
    if 150.00 if the zero cents it will choose the cell d2
    if 150.50 then will choose the d4.

    How will i do that?

    Thank you

  72. Sherry says:

    Hi, how do you program a cell to fill itself with "1" based on the given date range? I have all dates in one row and in the column I have employee names.

  73. Sasha says:

    hi,

    the values in my cell are "<90", the if formal hasn't been picking up on this and is returning the second condition for all cases
    Is there anyway to fix this?

  74. Balasaravanan Palanirajh says:

    Thank you very much
    I've learnt a lot more here than in class
    I was able to find what was needed then and there
    Thank you once again
    Good job, you all

  75. Matthew Ammerman says:

    Hi! I could use some help if anyone is available.

    I have 2 sheets that contain the same column called "Content Title".

    Sheet 2 has an additional column with data in it called "Total Unique Users". I want to bring over the data from Sheet 2 column "Total Unique Users" to Sheet 1 if I can find the same Content Title in Sheet 1.

    For example, If Content Title in Sheet 1 is equal in Sheet 2, pull the data from the "Total Unique Users" column in Sheet 2 into Sheet 1.

    Any help is appreciated. Thank you!

  76. Mr David Richman says:

    I have 2 columns of numbers , cOL C&D . I need Col A to represent a letter based on these criteria.
    If C is greater than D then show text H else show A

    I have =IF($C$3>$D$3,"H","A") this works OK but if the numbers match I need to show text D. How can I do this please..

  77. Annette says:

    Hi,
    I'm trying to use formula in a budget where
    C3 D3 ($eg) E3(monthly)
    yearly $95000 = D3/12
    monthly $500 = D3*1
    weekly $50 = D3*4

    Please assist with e3 cell formulas

    Regards
    Annette

  78. Bird says:

    I want to write a statement in sheet named Master, that reads a cell in sheet named 2021 and if it says N, come back with NO. If it is blank, I want it to come back with a blank. If it is anything else, I want it to give me the value in another cell in sheet 2021. How do I do this? I have tried a bunch of different IF functions and everything comes back with an error.

  79. James Veleno says:

    To everyone, I need help.
    Column A1: John Doe
    Column A2: Jim Doe
    Column A3: James Doe
    ...

    So, columns B should be:
    Column B1: 12345
    Column B2: 23456
    Column B3: 34567

    John is 12345, Jim is 23456, James is 34567.
    How to make formula that puts their numbers when I put their names?

  80. Richar Wooley says:

    Working on setting up a asset inventory sheet using existing bar codes,

    I can get the Barcode to scan insert Barcode number and insert scan date. But I also need it to search the spreadsheet for a matching barcode, and update the scanned date with the current date.

    Present code:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Dim x As Integer
    For x = 2 To 1000
    If Cells(x, 1).Value "" And Cells(x, 2).Value = "" Then
    Cells(x, 2).Value = Date & " " & Time

    Cells(x, 2).NumberFormat = "m/d/yyyy h:mm AM/PM"

    End If

    Next

    Range("B:B").EntireColumn.AutoFit
    End Sub

    Would like to have it to where I scan in one Cell and have it search for exsisting data match or append @ the end of the rows.

  81. Danielle says:

    =(IF(N191.4,N191.7,N192.4,"NORA"))))
    Hello!
    I would like to write a formula saying:

    if N191.4 and N191.7 and N192.4 write NORA

  82. Danielle says:

    =IF(N191.4,N19<1.7, "PA"))
    Hello, This formula enters False or True instead of PA when the value is between 1.4 and 1.7.
    Thank you for your help

  83. Donnette Stanley says:

    I have spent hours and cannot figure this out. I have a spreadsheet with contract numbers and material numbers, a second tab has the same information contract numbers and material numbers but it includes a line for each shipment. I am trying to come up with a formula that counts the number of shipments, So anything greater than 0 that matches the contract number and the material number count as 1. I cannot figure it out: =COUNifs('Aug 2021'!E:E,">0",'Aug 2021'!J:J,D2,'Aug 2021'!I:I,E2) This is the closest I have gotten and it comes up with the #name?

  84. Mike Excell says:

    I don't understand why my if statement does not work. I am searching for age based on year in 2 digit format. 98, 02, 13 ect. The year for the exercise is 2014. The formula I wrote follows:

    =IF(F6<14, 14-F6, 114-F6)

    The results all come back 14-F6 no matter if the value is above or below 14. but if it is above 14 shouldn't the function follow the false result function of 114-F6?

    Does a have to be equated to zero specifically or something. I finally got the function to work with =IF(F6-14>0, 100-F6+14, 14-F6) but that seems like a lot of extra steps compared to my first equation.

  85. Laurent says:

    Hello, I'm wondering if you can help me? Looking to create a formula to simply identify currency 'EUR' or 'USD' in source column, to then compute exchange rate for that currency in next column. I have been trying to use the 'IF' function, but it doesn't work. For example:

    Column A: 'EUR' or 'USD'
    Column B: =IF(A1=EUR,"4.50","3.67")

    However this is giving me #NAME? error.

    Was wondering if you had any suggestions?
    Thanks!

  86. LS says:

    I have one column where hours will be put. If one day has zero hours, I want another column on same day to put DYO, and in a third column for it to put day off, and all other columns to remain blank. This will all remain on one date or line. I would like it all done based on that one column having zero. Any ideas on formula?

  87. Toba Fawekun says:

    Hello, I have this formula that works individually but will like to have it as a single formula.
    =IF(L6="SUPPRESSED", (EDATE(N6,11).
    =IF(L6="UNSUPPRESSED", (EDATE(N6,3).
    In my table, the L column returned "Suppressed" if the value connected to its formula is 1000. So I want a single formula the will return (EDATE(N6,11) and (EDATE(N6,3) if the L column returned "Suppressed" or "Unsuppressed".

  88. AJ says:

    Hi everyone,

    Please could someone help me I am trying to create the following

    If M2 is less or equal to 0-0.99 return the text in cell N2 "0"
    If M2 is less or equal to 1.00-1.99 return the text in cell N2 "1"
    If M2 is less or equal to 2.00-2.99 return the text in cell N2 "2"
    If M2 is less or equal to 3.00-3.99 return the text in cell N2 "3"
    If M2 is less or equal to 4.00-4.99 return the text in cell N2 "4"
    If M2 is less or equal to 5.00-5.99 return the text in cell N2 "5"
    If M2 is less or equal to 6.00-6.99 return the text in cell N2 "6"
    If M2 is less or equal to 7.00-7.99 return the text in cell N2 "7"
    If M2 is less or equal to 8.00-8.99 return the text in cell N2 "8"
    If M2 is less or equal to 9.00-9.49 return the text in cell N2 "9"
    If M2 is less or equal to 9.50-9.99 return the text in cell N2 "10B"
    If M2 is equal to 10.00 return the text in cell N2 "10A"

    Any help would be hugely appreciated.

  89. Nixon Omblero Canedo says:

    Trans. Date Type of Customers Due Date

    06/10/21 Regular 06/25/21
    06/10/21 Consignment 06/17/21

    Note:

    1) What is the formula to add 15 days from the date of transaction

  90. Allison says:

    Hi. I am trying to create a formula that compares a single cell to an entire column(unlimited number) of data. Basically I have a tracking # in a cell and need to compare that to a column consisting of tracking #'s that have been shipped(I will be continuously adding to this column). I want to create a column that lets me know if that tracking # in a cell has been shipped.
    So I was tried using formula:
    =if(C9=I:I,"Shipped","Freezer")

    But it doesn't not work. even though that cell(C9) matches a number in I:I, it will not display shipped and only displays freezer instead.

Post a comment



Thank you for your comment! When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to your query. We cannot guarantee that we will answer every question, but we'll do our best :)