# Excel IF statement with multiple AND/OR conditions, nested IF formulas, and more

In Part 1 of our Excel IF function tutorial, we started to learn the nuts and bolts of the Excel IF function. As you remember, we discussed a few IF formulas for numbers, dates and text values as well as how to write an IF statement for blank and non-blank cells.

However, for powerful data analysis, you may often need to evaluate multiple conditions at a time, meaning you have to construct more sophisticated logical tests using multiple IF functions in one formula. The formula examples that follow below will show you how to do this correctly. You will also learn how to use Excel IF in array formulas and learn the basics of the IFEFFOR and IFNA functions.

## How to use Excel IF function with multiple conditions

In summary, there can be 2 basic types of multiple conditions - with AND and OR logic. Consequently, your IF function should embed an AND or OR function in the logical test, respectively.

• AND function. If your logical test contains the AND function, Microsoft Excel returns TRUE if all the conditions are met; otherwise it returns FALSE.
• OR function. In case you use the OR function in the logical test, Excel returns TRUE if any of the conditions is met; FALSE otherwise.

To better illustrate the point, let's have a look at a few IF examples with multiple conditions.

#### Example 1. Using IF & AND function in Excel

Suppose, you have a table with the results of two exam scores. The first score, stored in column C, must be equal to or greater than 20. The second score, listed in column D, must be equal to or exceed 30. Only when both of the above conditions are met, a student passes the final exam.

The easiest way to make a proper formula is to write down the condition first, and then incorporate it in the logical_test argument of your IF function:

Condition: AND(B2>=20, C2>=30)

IF/AND formula:

=IF((AND(C2>=20, D2>=30)), "Pass", "Fail")

Easy, isn't it? The formula tells Excel to return "Pass" if a value in column C >=20 AND a value in column D >=30. Otherwise, the formula returns "Fail". The screenshot below proves that our Excel IF /AND function is correct:

Note. Microsoft Excel checks all conditions in the AND function, even if one of the already tested conditions evaluates to FALSE. Such behavior is a bit unusual since in most of programming languages, subsequent conditions are not tested if any of the previous tests has returned FALSE.

In practice, a seemingly correct IF / AND formula may result in an error because of this specificity. For example, the below formula will return "Divide by Zero Error" (#DIV/0!) if cell A2 is equal to 0:

=IF(AND(A2<>0,(1/A2)>0.5),"Good", "Bad")

The avoid this, you should use a nested IF function:

=IF(A2<>0, IF((1/A2)>0.5, "Good", "Bad"), "Bad")

#### Example 2. Using IF with OR function in Excel

You use the combination of IF & OR functions in a similar way. The difference from the IF / AND formula discussed above is that Excel returns TRUE if at least one of the specified conditions is met.

So, if we modify the above formula in the following way:

=IF((OR(C2>=20, D2>=30)), "Pass", "Fail")

Column E will have the "Pass" mark if either the first score is equal to or greater than 20 OR the second score is equal to or greater than 30.

As you see in the screenshot below, our students have a better chance to pass the final exam with such conditions (Scott being particularly unlucky failing by just 1 point : )

More formula examples can be found in Excel IF OR functon.

#### Example 3. Using IF with AND & OR functions

In case you have to evaluate your data based on several sets of multiple conditions, you will have to employ both AND & OR functions at a time.

In the above table, suppose you have the following criteria to evaluate the students' success:

• Condition 1: column C>=20 and column D>=25
• Condition 2: column C>=15 and column D>=20

If either of the above conditions is met, the final exam is deemed passed, otherwise - failed.

The formula might seem tricky, but in a moment, you will see that it is not! You just have to express two conditions as AND statements and enclose them in the OR function since you do not require both conditions to be met, either will suffice:

OR(AND(C2>=20, D2>=25), AND(C2>=15, D2>=20)

Finally, use the above OR function as the logical test in the IF function and supply value_if_true and value_if_false arguments. As the result, you will get the following IF formula with multiple AND / OR conditions:

=IF(OR(AND(C2>=20, D2>=25), AND(C2>=15, D2>=20)), "Pass", "Fail")

The screenshot below indicates that we've got the formula right:

Naturally, you are not limited to using only two AND/OR functions in your Excel IF formulas. You can use as many logical functions as your business logic requires, provided that:

• In Excel 2016, 2013, 2010 and 2007, your formula includes no more than 255 arguments, and the total length of the formula does not exceed 8,192 characters.
• In Excel 2003 and lower, you can use up to 30 arguments and the total length of your formula shall not exceed 1,024 characters.

## Using multiple IF statements in Excel (nested IF functions)

If you need to create more elaborate logical tests for your data, you can include additional IF statements in the value_if_true and value_if_false arguments of your Excel IF formulas. These multiple IF functions are called nested IF functions and they may prove particularly useful if you want your formula to return 3 or more different results.

Here's a typical example: suppose you want not simply to qualify the students' results as Pass/Fail, but define the total score as "Good", "Satisfactory" and "Poor". For instance:

• Good: 60 or more (>=60)
• Satisfactory: between 40 and 60 (>40 and <60)
• Poor: 40 or less (<=40)

To begin with, you can add an additional column (E) with the following formula that sums numbers in columns C and D:

=C2+D2

And now, let's write a nested IF function based on the above conditions. It's considered a good practice to start with the most important condition and make your functions as simple as possible. Our Excel nested IF formula is as follows:

=IF(E2>=60, "Good", IF(E2>40, "Satisfactory", "Poor "))

As you see, just one nested IF function is sufficient in this case. Naturally, you can nest more IF functions if you want to. For example:

=IF(E2>=70, "Excellent", IF(E2>=60, "Good", IF(E2>40, "Satisfactory", "Poor ")))

The above formula adds one more conditions - the total score of 70 points and more is qualified as "Excellent".

For more information about Excel IF with multiple conditions, please see How to use nested IF in Excel.

## Using Excel IF in array formulas

Like other Excel functions, IF can be used in array formulas. You may need such a formula if you want to evaluate every element of the array when the IF statement is carried out.

For example, the following array SUM/IF formula demonstrates how you can sum cells in the specified range based on a certain condition rather than add up the actual values:

=SUM(IF(B1:B5<=1,1,2))

The formula assigns a certain number of "points" to each value in column B - if a value is equal to or less than 1, it equates to 1 point; and 2 points are assigned to each value greater than 1. And then, the SUM function adds up the resulting 1's and 2's, as shown in the screenshot below.

Note. Since this is an array formula, remember to press Ctrl + Shift + Enter to enter it correctly.

## Using IF function together with other Excel functions

Earlier in this tutorial, we've discussed a few IF formula examples demonstrating how to use the Excel IF function with logical functions AND and OR. Now, let's see what other Excel functions can be used with IF and what benefits this gives to you.

#### Example 1. Using IF with SUM, AVERAGE, MIN and MAX functions

When discussing nested IF functions, we wrote the formula that returns different ranking (Excellent, Good, Satisfactory or Poor) based on the total score of each student. As you remember, we added a new column with the formula that calculates the total of scores in columns C and D.

But what if your table has a predefined structure that does not allow any modifications? In this case, instead of adding a helper column, you could add values directly in your If formula, like this:

=IF((C2+D2)>=60, "Good", IF((C2+D2)=>40, "Satisfactory", "Poor "))

Okay, but what if your table contains a lot of individual scores, say 5 different columns or more? Summing so many figures directly in the IF formula would make it enormously big. An alternative is embedding the SUM function in the IF's logical test, like this:

=IF(SUM(C2:F2)>=120, "Good", IF(SUM(C2:F2)>=90, "Satisfactory", "Poor "))

In a similar fashion, you can use other Excel functions in the logical test of your IF formulas:

IF and AVERAGE:

=IF(AVERAGE(C2:F2)>=30,"Good",IF(AVERAGE(C2:F2)>=25,"Satisfactory","Poor "))

The formulas retunes "Good" if the average score in columns C:F is equal to or greater than 30, "Satisfactory" if the average score is between 29 and 25 inclusive, and "Poor" if less than 25.

IF and MAX/MIN:

To find the highest and lowest scores, you can use the MAX and MIN functions, respectively. Assuming that column F is the total score column, the below formulas work a treat:

MAX: =IF(F2=MAX(\$F\$2:\$F\$10), "Best result", "")

MIN: =IF(F2=MIN(\$F\$2:\$F\$10), "Worst result", "")

If you'd rather have both the Min and Max results in the same column, you can nest one of the above functions in the other, for example:

=IF(F2=MAX(\$F\$2:\$F\$10) ,"Best result", IF(F2=MIN(\$F\$2:\$F\$10), "Worst result", ""))

In a similar manner, you can use the IF function with your custom worksheet functions. For example, you can use it with the GetCellColor / GetCellFontColor functions to return different results based on a cell color.

In addition, Excel provides a number of special IF functions to analyze and calculate data based on different conditions.

For example, to count the occurrences of a text or numeric value based on a single or multiple conditions, you can use COUNTIF and COUNTIFS, respectively. To find out a sum of values based on the specified condition(s), use the SUMIF or SUMIFS functions. To calculate the average according to certain criteria, use AVERAGEIF or AVERAGEIFS.

For the detailed step-by-step formula examples, check out the following tutorials:

#### Example 2. IF with ISNUMBER and ISTEXT functions

You already know a way to spot blank and non-blank cells using the ISBLANK function. Microsoft Excel provides analogous functions to identify text and numeric values - ISTEXT and ISNUMBER, respectively.

Here's is example of the nested Excel IF function that returns "Text" if cell B1 contains any text value, "Number" if B1 contains a numeric value, and "Blank" if B1 is empty.

=IF(ISTEXT(B1), "Text", IF(ISNUMBER(B1), "Number", IF(ISBLANK(B1), "Blank", "")))

Note. Please pay attention that the above formula displays "Number" for numeric values and dates. This is because Microsoft Excel stores dates as numbers, starting from January 1, 1900, which equates to 1.

#### Example 3. Using the result returned by IF in another Excel function

Sometimes, you can achieve the desired result by embedding the IF statement in some other Excel function, rather than using another function in a logical test.

Here's another way how you can use the CONCATINATE and IF functions together:

=CONCATENATE("You performed ", IF(C1>5,"fantastic!", "well"))

I believe you hardly need any explanation of what the formula does, especially looking at the screenshot below:

## IF function vs. IFERROR and IFNA

Both of the functions, IFERROR and IFNA, are used to trap errors in Excel formulas and replace them with another calculation, predefined value or text message. In earlier Excel versions, you can use the IF ISERROR and IF ISNA combinations instead.

The difference is that IFERROR and ISERROR handle all possible Excel errors, including #VALUE!, #N/A, #NAME?, #REF!, #NUM!, #DIV/0!, and #NULL!. While IFNA and ISNA specialize solely in #N/A errors.

Here is the simplest example of the IFERROR formula:

=IFERROR(B2/C2, "Sorry, an error has occurred")

As you see in the screenshot above, column D displays the quotient of the division of a value in column B by a value in column C. You can also see two error messages in cells D2 and D5 because everyone knows that you cannot divide a number by zero.

In some cases, however, you may not want to trap all errors, but rather test the condition causing a specific error. For example, to replace a divide by zero error with your own message, use the following IF formula:

=IF(C2=0, "Sorry, an error has occurred", B2/C2)

And that's all I have to say about using the IF function in Excel. I thank you for reading and hope to see you on our blog next week!

### 2,688 Responses to "Excel IF statement with multiple AND/OR conditions, nested IF formulas, and more"

1. Christina says:

I have a data set and I need to use a nested IF formula.
Basically, if the word faculty(begins in cell I2) appears, my output should be Dr.
and if student (begins in cell I2)appears with a sex of M (begins in cell H2), my output should be Mr.
and if student (begins in cell I2)appears with a sex of F (Begins in cell H2), my output should be Ms.
To complete the output, First Name and Last Names must also be included EX: Dr. First Last - Mr. First Last - Ms. First Last (First name starts in cell A2 and Last Name B2

• Hello Christina!
If I got you right, the formula below will help you with your task:

=IF(I2="faculty",CONCATENATE("Dr. ",A2," ",B2),IF(I2="student",IF(H2="M",CONCATENATE("Mr. ",A2," ",B2),IF(H2="F",CONCATENATE("Ms. ",A2," ",B2),""))))

I hope my advice will help you solve your task.

• Christina says:

Yes, thank you.

2. Marlon says:

Looking to show a result (pass/improve/Fail against a range of numbers in the same formula, how can I do this? Appreciate the help. please see below range;
0 to 70 = fail
71 to 89 = improve
90 to 100 pass

• Hello!
Please try the following formula:

=IF(A1<70,"fail",IF(A1<90,"improve","pass"))

I hope this will help

3. Elvis says:

Attempting to create a formula to show once case record. If it is a zero, then fail, if it a 1, then pass. Data below shows duplicate case records, need to show that if one of the cells to the left of case record is a zero, then the whole case record is a fail, and if they are all ones, then it is a pass. However, don't need the case record to show as a duplicate, only one case record. Thoughts?
Right the First Time CaseRecordID
0 28018598
0 28018598
1 28018598
1 28018598
1 27986560
1 27986560
1 27986560
1 27986560
1 28008880
0 28008880
1 28008880
1 28008880
1 28008920
1 28008920
1 28008920
1 28008920
1 28038434
1 28038434
1 28038116
1 28038116
1 28038116
1 28038116
1 28038434
1 28038434

• Hello!
If I got you right, the formula below will help you with your task:

=IF(SUMPRODUCT(--(\$C\$1:\$C\$28=C17), --(IF(\$B\$1:\$B\$28=0,-9999999999,1))) > 0,"pass","fail")

After that you can copy this formula down along the column.

4. Kathi says:

This is what I see:

W Z AG (Results) '=IF(W55000, W5-5000))
Taxable Amt Non Taxable Amt Over \$5000.00 Exempt Amt
0 \$377.50 0
\$2,848.45 \$573.90 0
0 \$1,600.35 \$(5,000.00)
0 \$12,478.32 \$(5,000.00)
0 \$13,864.08 \$(5,000.00)
\$9,314.72 \$- \$4,314.72
\$13,320.09 \$- \$8,320.09

When I put your formula in Column it gives the same results:

Column AG
Over \$5000.00 Exempt Amt
\$(5,000.00)
\$-
\$(5,000.00)
\$(5,000.00)
\$(5,000.00)
\$4,314.72
\$8,320.09

so not sure why it is ignoring that if column W is zero then Column AG ought to be zero.

Hope this helps with the explanation.
Thank you for helping,
Kathi

• Hello Kathi!
The formula I sent to you was created based on the description you provided in your first request. However, as far as I can see from your second comment, your task is now different from the original one. Please note that if you’d provided me with the precise and detailed description of your task from the very beginning, I’d have created a different formula that would have worked for your case.

5. Shailesh says:

Hello,
Can you help me with a formula which return the value as "Qtr 1, Qtr 2, Qtr 3, Qtr 4' based on the month entered in a cell.
eg. if Column B as value as Feb, Apr, Jul, Dec in cell B1, B2, B3, B4, in column C the result should be as Qtr 1, Qtr 2, Qtr 3, Qtr 4.

Thanks

• Hello!
If I got you right, the formula below will help you with your task:

="Qtr "&ROUNDUP(MONTH(DATEVALUE("1/"&B1&"/2020"))/3,0)

I hope this will help

6. David says:

Hi,
I hope you are well! I just need a quick tip with my formula:
I need to create a forumla which says IF column F has the word TOR then collumn E must have 100. If it has 100 it displays "correct" if it is less/more than then it displays "incorrect".
I.E: F=TOR E=100 COLUMN H: CORRECT
I.E: F=TOR E=90 COLUMN H: INCORRECT

This is just one part of the formula, how would I then add an additional/multiple rules which also displayed same result.
For example, if I had the words TOR, TOR1, TOR2, TOR3
TOR = 100
TOR1 = 200
TOR3 = 300
How can I get column F which contains the word TOR/TOR1/TOR2 etc to match the correct value assigned to it in column E

I.E: F=TOR E=100 COLUMN H: CORRECT / F=TOR1 E=200 COLUMN H: CORRECT
I.E: F=TOR E=99 COLUMN H: INCORRECT / F=TOR1 E=199 COLUMN H: INCORRECT
I hope this explains it well enough. Really appreciate the support!

• David says:

This is what I have so far but it is constantly displaying "Wrong" in the cell:

Wrong
=IF(AND(E9="80.00 UK",F9="TOR",OR(E9="100.00 UK",F9="TOR1",OR(E9="150.00 UK",F9="TOR2"))),"Correct","Wrong")

• Hello David!
If I understand your task correctly, the following formula should work for you:

=IF(OR(AND(F6="TOR",E6=100), AND(F6="TOR1",E6=200), AND(F6="TOR3",E6=300)),"Correct","Wrong")

Hope this is what you need.

• David says:

You are an absolute genius! Exactly what I needed!!

I just need to keep adding the AND section for additional criteria, thank you so much you have saved hours of mine and my colleagues time! Thank you so much again!

7. Raj says:

If income is
Up to Rs. 7,500 Nil (for male)
From Rs. 7,500 to Rs. 10,000 Rs. 175 (for male)
Rs. 10,000 onwards Rs. 200 (for male)
Up to Rs. 10,000 Nil (for female)

• Raj says:

If income is
Up to Rs. 7,500 then tax will be Nil (for male)
From Rs. 7,500 to Rs. 10,000, tax will be Rs. 175 (for male)
Rs. 10,000 onwards, tax will be Rs. 200 (for male)
Up to Rs. 10,000 tax will be Nil (for female)
Above Rs.10,000 tax will be Rs.200 (for female)

• Arumugam M says:

Hello,
Below formula should work for you... if the values Sex and Salary are assumed to be in the cells D3 and E3 respectiely...
=IF(AND(D3="Male",E37501,E310000),200,IF(AND(D3="Female",E310000),200,"")))))

8. Celina says:

Hi there, I'd like some more insight into making this formula work for me. I'm doing a training matrix where I need to know if by today's date someone training has expired or about to expire..

I have so far:
=today()

• Celina Brown says:

=today() and =today()+30 for expiry in 30 days (between)
=today()+30 (greater than)
Would this work?

• Hello Celina!
I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Please specify what you were trying to find, what formula you used and what problem or error occurred. Give an example of the source data and the expected result.
It’ll help me understand it better and find a solution for you. Thank you.

9. Tanner says:

Hello,
I am trying to understand the correct formula for my project. My goal is to develop an IF statement for the following. If the number in column C is within a range it gets a score of 6-8.

Score Legend
1-50,000,000 Scores a 6
50,000,001 – 100,000,000 Scores a 7
100,000,001 – 500,000,000 Scores an 8

Column C Score Column D Score
400,000,000
85,000,000
48,000,000

I keep getting errors with different formulas. Any help would be greatly appreciated.
Thank you!!
Tanner

• Hello!
I hope you carefully read the article above. If I understand your task correctly, the following formula should work for you:

=IF(AND(A1>1,A1<50000000),6,IF(AND(A1>50000001,A1<100000000),7, IF(AND(A1>100000001,A1<500000000),8,0 )))

10. haseen says:

I tried several IF formulas but I am not getting the desired output. Please can you help me provide the appropriate formula to get the output.
There are the conditions: (if the number is between 1 and 20, the value should be 3)
1-20 figs - 3 days
21–100 figs – 5 days
101–200 figs – 8 days
201–400 figs – 12 days
401–600 figs – 14 days
Please help.

• Hello!
I hope you carefully read the article above. Check out this answer.

11. Shravani Dharam says:

Can I find the same for time ???
I means if my difference in time is greater than 10 mins and my task done within 10mins
If yes can you explain the formula

• Hello!
I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Please specify what you were trying to find, what formula you used and what problem or error occurred. Give an example of the source data and the expected result.
It’ll help me understand it better and find a solution for you. Thank you.

12. Glenn Read says:

Hi is someone is able to help
I need help with an IF formula
I need help with, if the value in cell A1 sheet1 is + or - 10 of another cell in another sheet say Sheet2 cell A1 if yes then equals Cell B1 in sheet2 .

hope this make sense thank you in advances

• Hello Glenn!
I hope you have studied the recommendations in the above tutorial. Explain what "value in cell A1 sheet1 is + or – 10 of another cell in another sheet" means?

• Glenn Read says:

Hi Alexander,
I have studied the above tutorial I do understand how to calculate if cell A1 is within + or - 10 of Cell B1, but it is when it comes to the result I don't want it to equal good or bad I want it to if it falls within that + or - 10 I want it to equal another cell C1 but if it doesn't fall within it is a fail.

• Hello Glenn!
If a value is written in cell A1, then the formula can no longer be written to it. This has already been discussed on the forum many times. So your question about the formula in cell A1 does not make sense. Only VBA Macro Can Solve the Problem

• Glenn Read says:

Hi Alexander,
Apologies I should have explained my situation better and included my formula.
the formula I am running is =IF(ABS(A1-B1)<=C1,"ok","Fail") but instead of if the result is ok it equals a number in cell E1

• Hello!
If I understand your task correctly, the following formula should work for you:
=IF(ABS(A1-B1)<=C1,E1,"Fail")

13. John says:

Hello,
I have the following statement that works.
=IF(OR(G6 = "high", H6 = "high", I6 = "high", J6 = "high"), 0.3*F6, F6)
I now want to have the statement to look for a "medium" value in each of those cells and if it is a "medium" it would multiply F6 by 0.6 otherwise it would return F6 unchanged.
If "high" it would multiply F6 by 0.3
If there is a "high" in the string then it would ignore any medium.
Thanks!

• Hello John!
If I understand your task correctly, the following formula should work for you:

=IF(OR(G6 = "high", H6 = "high", I6 = "high", J6 = "high"), 0.3*F6, IF(OR(G6 = "medium", H6 = "medium", I6 = "medium", J6 = "medium"), 0.6*F6, F6))

I hope this will help

• John says:

Perfect! thanks!

14. hope says:

Hi,
Following is an example of a data sheet with the 4 columns(A, B, C, D).The values in first three columns correspond(match) to each other but in Column D values are randomly located in different rows even though the column is sorted. I need to find out the correct value that corresponds to the value of Start and stop in each row. For example, there is a value in "Position" column that falls between the range of start(3904) and stop(4943) in first row but do not know how to find it?
Genesymbol Start Stop Position
Mt-nd2 3904 4943 471
Mt-atp8 7758 7962 635
Ppil4 1897338 1929764 645
Mib1 1970914 2094921 665
Arrdc1 2129879 2136937 685
Hspa1a 2699712 2701816 2924
Glmn 3204390 3247696 2959
Ncoa2 5616483 5694599 3130
Slc7a1 8032809 8108973 3140
Vcpip1 9230984 9257935 3145
Uimc1 10065947 10130908 3166
Wasf3 10298555 10391271 3196
Secisbp2 13555349 13586555 3211
Fam98a 21051327 21065987 3418
Samd4a 23665202 23878540 3560
Gfod1 23823632 23923793 3575
Npy1r 24779477 24788741 3581
Hars2 29629184 29638722 3808
Pcdhb5 30398113 30400696 3860
Ddx50 32239748 32269146 4055
Zfp827 32401661 32528966 4252
Epc2 33641616 33740462 4375
Tmem132b 35970821 36398247 4600
AABR07001068.1 37059412 37162590 4708
Rmnd5b 37073345 37084638 4920
Fbxo8 37131345 37177034 6331
Dpysl2 43477629 43542940 7474
AABR07072400.1 43694183 43694612 7568
Ugdh 44479614 44502846 7606
Lias 44507218 44524253 7663
Tenm3 46731403 46926246 7699
Senp7 46880928 47027668 7711
Amph 48304322 48562906 7898
Pnrc1 48501472 48504512 7925
Scn2b 49418965 49427690 8025
Ctc1 55596148 55616890 8040
Ndst1 55955389 55992886 8115
Phf23 56605140 56609234 8255
Tlk1 57013025 57119002 8271
LOC103690017 57318795 57389902 8308
Pigo 58461759 58469400 8351
Mcart1 60944563 60955944 8377
RGD1305464 61913589 61919875 8394
Cdh6 63101739 63166510 8441
Dip2c 63635086 63808465 8483
Luc7l2 66290389 66354712 8534
Cyp20a1 67130259 67179693 9260
Cxxc1 70192493 70197868 9298
Rasal2 74771522 75059327 9310
Zswim9 75335894 75354821 9544
Ppp2r2c 78679214 78902064 9574
Xrcc5 79659251 79748079 9593
Irgq 81395841 81399673 9646
Plcd4 81816872 81844365 9658
Bcs1l 81868265 81872198 9684
Limk2 83573928 83641893 9763
Ick 85413537 85472695 9832
Pip4k2b 85658324 85684139 9937
Zmiz2 86652365 86661442 10077
LOC100360491 86751157 86751793 10125
AABR07019085.1 87404841 87450320 10298
Stat5b 88686207 88754830 10334
Itpkb 98615287 98708150 10790
Neu4 101284902 101290559 10820
Dusp10 104284660 104321456 10992
Prpsap1 105430520 105452229 11834
Armcx5 106253355 106255059 12021
Nek9 109124330 109162268 12621
Mrpl12 109658032 109662536 12762
Zfp638 115601661 115690273 12786
Ccdc51 117812099 117830869 12802
Nup210 122644135 122741111 12858
Xrcc6 123259761 123280613 12876
Rtl6 125465117 125465849 12921
Lurap1 134991997 135001721 12935
Arid2 137680530 137795656 12948
Zfp133 138597638 138616132 12975
Dzank1 138624555 138683319 13006
Noct 140286661 140306870 13020
RGD1561327 144445795 144447448 13039
Ret 150202058 150244373 13099
AABR07054400.1 152402520 152465229 13336
Epb41l1 153843206 153893848 13551
Ing4 157554794 157563353 13580
Vwf 158088505 158219524 13637
Oser1 159784128 159802953 13699
Snx21 161252723 161264819 13826
Lrp6 168194927 168323752 13916
Ints13 180855800 180887051 14003
Tmtc1 182625386 182844292 14149
Snapin 189878168 189880744 14193
Wdr3 202447745 202470400 14202
Rap1a 208193954 208215188 14235
LOC100911730 214009784 214013766 14706
LOC100911881 214039481 214074664 14775
Tspan4 214454090 214473742 14910
Chid1 214476387 214511530 14970
LOC108348052 220307394 220314036 14980
LOC102553088 230476320 230479595 15009
Alpk1 231996088 232117135 15073
Jak2 247398598 247458510 15088
AABR07007121.1 282063929 282064742 15150
Any help will be appreciated.Thanks!

• Hello!
You want to find the values in the "Position" slider, which are between the Start and Stop values. Between 3904 and 4943 there are values 4055.4252, 4375, 4600.4708 and many others. Explain which one you want to find?

15. Clavel Bwalya says:

Good Morning,
Please assist, I am struggling with the formula below.
=IF(Z5>Y5,Y5*30%,IF(Z50,Z5*0%)))
X Y Z AA
Tax @25% Tax @25%
200.00 2,100.00 3,800.00 630.00
200.00 2,100.00 800.00 240.00
200.00 2,100.00 3,800.00 630.00
0.00 2,100.00 -5,400.00 -1,620.00
200.00 2,100.00 3,800.00 630.00
0.00 2,100.00 -5,400.00 -1,620.00
I want Cell AA to be zero if the value in cell Z is less than 1

• Hello!
The numbers in your table do not match the conditions in your formula. Therefore, your calculations are not very clear to me. However, it may be useful to you.

=IF(Z5>Y5,Y5*30%,IF(Z5<1,Z5*0%))
=IF(AND(Z5>0,Z5>Y5),Y5*30%,0)

16. STONE E WAHL says:

I need help in finalizing this formula. =IF(AND(L10>=1,L10<=10),250,SUM(L10-10)*11+250), IF(L10<1,0,""). The formula works great up to the last IF statement. I am needing it to return 0 if L10 is less than one or in other words equal to zero.

• Hello!
If I understand your task correctly, the following formula should work for you:

=IF(AND(L10>=1,L10<=10),250,IF(L10<1,0,SUM(L10-10)*11+250))

I hope this will help

17. Lucija says:

Hi,
Can anyone please help me with my formula.
I need "Yes" or "No" answer if the number in cell matches a number from any cell in another selected field. These two i have tried so far, but no luck.
And sorry, my excel is in German.
=WENN(A13=Tabelle1!A2:A29;"ja";"nein")
=WENN(B16="SVERWEIS('INT-B-106 Kennzahlen nach Artik'!A13;Tabelle1!A:A;1;Tabelle1!A:A)";"ja";"nein")

Thanks for help and have a great day!

• Hello!
I propose to use the following formula (in English):

=IF(SUM(--(IF(A13=Tabelle1!A2:A29,1,0)))>0,"yes","no")

I hope this will help

18. Kopi Susu says:

This formula result: #VALUE!.
=IF(OR(AND(A4="APPLE",B4="ORANGE"),"DRINK",IF(AND(A4="BREAD",B4="BUTTER"),"EAT")))
Could you please fix it? The expected result is: DRINK, BUTTER, OR FALSE (either one).
Thank you in advance.

• Hello!
If I understand your task correctly, the following formula should work for you:

=IF(AND(A4="APPLE",B4="ORANGE"),"DRINK", IF(AND(A4="BREAD",B4="BUTTER"),"EAT"))

I hope it’ll be helpful.

• Kopi Susu says:

Thanks a lot, Alexander.
It works perfectly!
Have a nice day.
Cheers,

19. Anees says:

HI there I have inherited a daily cash reconciliation file which was updated manually on a daily basis. I'm trying to automate or create a formula and was wondering whats the best way to approcah this. So I have a list of transactions which I need to separate by Deposits, Wires Rcvd, Incoming Transfers, (Checks/wires)Paid, & Outgoing Transfers. Thank you!

• Hello Anees!
Unfortunately, without seeing your data it hard to give you advice.
You may find the pivot table useful.

• Anees Rehman says:

Post Date Check Description Debit Credit Status Balance Keyword Categories
07/24/2020 SHINE MEDICAL CORP PAY VALCOR ENGINEERING 21022.00 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) SHINE MEDICAL CORP PAY VALCOR ENGINEERING WIRE
07/24/2020 TA INSTRUMENTS-W DIR-DEPT VALCOR SCIENTIFIC 7200.00 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) TA INSTRUMENTS-W DIR-DEPT WIRE
07/24/2020 ORBITAL SCIENCES EFT ID: 400742 0005VALCOR ENGINEERI 705ISA*00* *00* 25594.00 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) ORBITAL SCIENCES EFT WIRE
07/24/2020 THE BOEING CO BCAGPAYSVC ID: 0006433532 0011VALCOR ENGINEERI 705ISA*00* *00* 16480.00 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) THE BOEING CO BCAGPAYSVC WIRE
07/24/2020 UNEX DISB PAYABLES ID: VALCOR VALCOR ENGINEERING COR 705 10878.00 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) UNEX DISB WIRE
07/23/2020 108572 CHECK NUMBER 108572 1245472250 972.10 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) CHECK NUMBER CHECKS PAID
07/23/2020 108341 CHECK NUMBER 108341 1245598400 10553.34 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) TRANSFER TO CK# 41337204 OUTGOING TRANSFER
07/23/2020 TRANSFER TO CK# 41337204 826257.04 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) PRINCIPAL LIFE WIRE
07/23/2020 PRINCIPAL LIFE P PLIC-PERIS ID: 7-1454400004529 NO NAME ON FILE 76421.81 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) Medivators Inc. EDI PYMNTS WIRE
07/23/2020 PRINCIPAL LIFE P PLIC-PERIS ID: 7-1454400004530 NO NAME ON FILE 9064.99 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) MERCHANT BANKCD DEPOSIT DEPOSITS
07/23/2020 PRINCIPAL LIFE P PLIC-PERIS ID: 7-1454400004528 NO NAME ON FILE 1750.00 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) Accessory Tech WIRE
07/23/2020 Medivators Inc. EDI PYMNTS ID: 01-102020000123 0012VALCOR ENGINEERI 705ISA*00* *00* 96770.50 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) PARKER EDI/ACH WIRE
07/23/2020 MERCHANT BANKCD DEPOSIT ID: 447201760884 VALCOR ENGINEERING COR 6255.50 Posted =INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0)) NORTHROP GRUMMAN EFT PMT WIRE

Hi Alex, I'm trying to create a Index formula for where it returns the category of the expense but unfortunately it's not working properly could you please assist?
Thanks,
Anees

• Hello!
I'm sorry, it is not very clear what result you want to get. Could you please describe your task in more detail and send us a small sample workbook with the source data and expected result to support@ablebits.com? Please shorten your tables to 10-20 rows/columns and include the link to your blog comment.

We'll look into your task and try to help.

20. Sue says:

Hi,
Can anyone help me with this formula? I've been trying to create a Nested IF OR but just can't get it to work. I have a table with "Team" as a column heading in column A. I've added column D to the table for the office group. If column A is ftl, gai, or orl then column D should be fl. If column A is glf or nol then column D should be gcn. If column A is atl then column D should be geo. This is my formula but the result is always #VALUE!. Please help!
=IF(OR([@Team]="ftl",[@Team]="gai",[@Team]="orl"),"fl"),IF(OR([@Team]="glf",[@Team]="nol","gcn"),IF(OR([@Team]="atl","geo"))

• Hello Sue!
If I understand your task correctly, the following formula should work for you:

=IF(OR(A1="ftl",A1="gai",A1="orl"),"fl",IF(OR(A1="glf",A1="nol"),"gcn",IF(A1="atl","geo","")))

or IF function can be replaced with INDEX + MATCH functions

=IFERROR(INDEX({"fl","fl","fl","gcn","gcn","geo"},MATCH(A1,{"ftl","gai","orl","glf","nol","atl"},0)),"")

I hope it’ll be helpful.

• Sue says:

You're a Genius! I used the Index Match and it works perfectly! I never would have figured it out on my own. Thank you so much!!

21. Imran Khan says:

can anyone please help me with this.
assume i have different data in A1 like 12ABCD999 OR 45JKLM888 OR 78MNOP111 and many more. now i want if value of first 2 number of A1 starts with 12 then my output should be "OK" and if value of first 2 number of A1 starts with 45 then my output should be "GREAT" and if value of first 2 number of A1 starts with 78 then output should be "FANTASTIC".
Thank you.

• Hello!
The formula below will do the trick for you:

=IF(--LEFT(A1,2)=12,"OK",IF(--LEFT(A1,2)=45,"Great",IF(--LEFT(A1,2)=78,"FANTASTIC","")))

I hope this will help

22. Niki says:

Hello,
I have a medical insurance cost comparison. Using data from multiple insurance quotations, with a number of factors to consider (Age, Gender, Salary and insurance Category), what formula would I have to use to return the cost in a specific cell (costing data found on a secondary worksheet, within the same workbook)? For example, Employee A is 30 years old, Single Male earning \$4,070 per month and is entitled to Category B Insurance the cost from Insurer 1 = \$6,696 per annum

• Hello Niki!
I think you should use the INDEX and MATCH functions to search. Read more here.

23. Leena says:

Hello Alexander!
I wonder if you can help me?
I have a nested IF formula which works fine;
=IFERROR(IF(Homepage!\$L\$4="Asda",'CPA - Hotspots Asda'!B12,IF(Homepage!\$L\$4="Tesco",'CPA - Hotspots Tesco'!B12,IF(Homepage!\$L\$4="Boots",'CPA - Hotspots Boots'!B12,IF(Homepage!\$L\$4="Field",'CPA - Hotspots Field'!B12,IF(Homepage!\$L\$4="Ireland",'CPA - Hotspots Ireland'!B12,IF(Homepage!\$L\$4="Morrisons",'CPA - Hotspots Morrisons'!B12,IF(Homepage!\$L\$4="Sainsburys",'CPA - Hotspots Sainsburys'!B12,IF(Homepage!\$L\$4="Sainsburys Trial",'CPA - Hotspots Sainsburys Trial'!B12,IF(Homepage!\$L\$4="Savers",'CPA - Hotspots Savers'!B12,IF(Homepage!\$L\$4="Superdrug",'CPA - Hotspots Superdrug'!B12,IF(Homepage!\$L\$4="Wilko",'CPA - Hotspots Wilko'!B12))))))))))),"")

I now however need to add another element to this whereby even if L4 on the homepage states "Asda", if B28 states "No", I need it to direct to a different sheet, but if it states "Yes" it continues to pull from B12 on the 'CPA - Hotspots - Asda' sheet, and then I also need this to continue for each individual If statement. Is this possible at all? Thanks

• Hello Leena!
It is very difficult to understand a formula that contains unique references to your workbook worksheets. For the same reason, I cannot check her work.
If I understand your task correctly, you can change the formula

=IF(AND(Homepage!\$L\$4=”Asda”, B28="Yes"), [your formula], IF(AND(Homepage!\$L\$4=”Asda”, B28="No"),[direct to a different sheet],""))

I hope it’ll be helpful.

24. James H Becker says:

Hello
I'm looking for a way to create a formula or macro that will check the value or entry in a column then have it enter the results based on the formula/macro in 2 different columns.
Example
Column A Column B Column C
12345 212456 230456
12366 217456 (null or blank)

For the above the criteria it would be IF column A = 12345 then column B = 21256 and column C = 230456
The data in column A is large with over 300 possible numbers.

• Hello James!
The information presented to you is not enough to give you advice.
You didn't say anything about the verification criteria. But an Excel formula can only enter a value in one cell.

25. Alex R says:

Hello,

I'm trying to determing which shipping containers were unloaded within the expected allocated time based on the number of pieces in the container. I have the total time it took to unload the containers in question and the amount of pcs on the containers. What formula can I use to determine if the container was unloaded within the threshold set based of the container pieces?

Hoping someone can help me!

< or = 399 pieces = 60 - 120 min per container
400 - 899 pieces = 120 - 180 min per container
900 - 1100 pieces = 180 - 240 min per container

• Hello Alex!
Please try the following formula:

=IF(A1<=399,IF(B1*60*24<=120,"Yes","No"), IF(A1<=899,IF(B1*60*24<=180,"Yes","No"), IF(A1<=1100,IF(B1*60*24<=240,"Yes","No"),"")))

Cell B1 contains the execution time of the operation in the time format "hh:mm:ss"
Hope this is what you need.

26. Pradeep kumar says:

Hi,
My Name is Pradeep ,I need help for example state and brand wise subscriber count data in a sheet .so my requirement is .
1st Condition ---
If I select only state one name then subscriber total count show only selected state sum of count .
2nd Condition ---
If state and town then subscriber total count show only selected state and town sum of count.
3rd Condition ---
If state and town any name both are no select then subscriber total sum of count show.
Date for your reference ---
State Brand Total
Ayodhya IDEA 188
Ayodhya Voda 4189
Gorakhpur IDEA 541
Gorakhpur Voda 3994
Kanpur IDEA 2072
Kanpur Voda 8248
Lucknow IDEA 1739
Lucknow Voda 21211
Prayagraj IDEA 723
Prayagraj Voda 5028
Varanasi IDEA 898
Varanasi Voda 5496
I am waiting your reply ..

Thanks
Pradeep

• Hello!
You can calculate the total number of subscribers using the COUNTIF function.
You can use the SUMIF and SUMIFS functions to calculate the conditional amount as described in this article.
I hope this will help

27. Linda says:

Hi,
Hope you are doing well.
I wanted to know what is the formula used to derive how many sequences a person has carried out each day. Below is my example..Everyday the person will enter his/her start no. and end of the day the closing no. and i needs to check how many sequences each person has done.

Thread Tester Seq Started Seq Completed Total Seq.Executed
MOT-FST-83 MEETA 1 5 5
MOT-ITM-146 AK-2 0 0 0
MOT-ITM-147 LD-4 5 5 1
MOT-ITM-148 LD-3 1 1 1
MOT-MSA-17 LD-1 33 36 4
MOT-MSA-18 AK-1 35 36 2
MOT-MSA-20 AS-2 4 6 3
MOT-MSA-21 MB-3 6 6 1

• Hello Linda!
To calculate the amount for each person, use the SUMIF function. Use the person's name as a criterion for counting. Read the detailed instructions in this article.
I hope this will help, otherwise please do not hesitate to contact me anytime.

28. Rhyan says:

Hi! I need to convert the following from Google Sheets to work in Excel
=ifs(N9=1,I9/10,N9=2,I9/100,N9=3,I9/1000,N9>3,I9/10000)

• Hello Rhyan!
Read the detailed instructions on how the IFS function works in Excel in this article.

29. Tapu Debnath says:

I am trying to create a formula for my spreadsheet for multiple ITEM in a single cell
If there is a "29" in a cell, then formula will D1+E1,
If there is a "31" in a cell, then formula will D1
If there is a "32" in a cell, then formula will D1+E1-F1
...........

Here 29,31,32 ... etc area type fabricated rebar size in civil construction.
so i use following formla
=IF(H1=29,"D1+E1",IF(H1=31,"D1",IF(H1=32,"D1+E1-F1")))
For 29 answer shows "D1+E1" instead of (D1=5+E1=7)=12

Please help!

• Hello!
You named the condition "If there is a“ 29 ”in a cell, then formula will D1 + E1". This condition is written in your formula.
Why do you expect "(D1 = 5 + E1 = 7) = 12" to be executed (I don't really understand what this expression means)?

• joanne says:

Hi,
The reason it is showing D1+E1 is because you put it quotation marks.
just put D1+E1.

30. Sally says:

Hi, I have a table of data & want a formula to find all the orders which have both a basin and a PEP :
IN052816 FRT FRT
IN052816 BASIN VBAML55MSMNO
IN052816 PKG PEP
IN052817 FRT FRT
IN052817 BASIN VB-BAR-48-NO
IN052817 PKG PEP
IN052817 ACC NONSTOCK
I have tried pulling all the basins to a separate tab & using the following formula: =IF((AND(K:K=PEP!K:K,PEP!M:M="PEP")), "Pass", "Fail") (K is IN (1st) column, M is PEP (3rd) column) but all it comes up with is FAIL
Please help!

• Hello Sally!
I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail?
Is your data recorded in one cell or in several?
There is not a single value in the sample data to find BOTH basin AND PEP. Each of the lines contains OR the first, OR the second.

• Sally says:

Hi Alexander, thank you for getting back to me.
The original data is in one tab A-AF 1-29808, with each item on its own line & column (sorry the post above doesn't look like it).
I appreciate the Basin & the PEP are on separate lines, I thought I could use the invoice number to determine the number of times they appear together as one invoice number would appear multiple times relating to each item on the invoice (K). I couldn't think of a way from this to find how many times a PEP (M) was on the same invoice as a Basin, so I copied all the Basins (L) onto one tab, and the PEP's onto another tab and tried the formula above on the basin tab, looking to the PEP tab to find a match.
Column K = Invoice Number
Column L = Category - Basin
Column M = Item - PEP
Does that help you understand what I am trying to do? and what data I am working with?
Thanks
Sally

• Hello Sally!
If I understand your task correctly, the following formula should work for you:

=IFERROR(INDEX(K1:K20, SMALL(IF("BASINPEP"=L1:L20&\$M\$1:\$M\$20,ROW(K1:K20)-0), ROW(INDIRECT("1:"&ROWS(K1:K20))))),"")

This is an array formula and it needs to be entered via Ctrl + Shift + Enter, not just Enter.
If your table has header rows, replace 0 in the formula with the number of those rows.

31. Rex says:

Hello! I cannot figure out the formula to "FLAG" a row for if each of the following conditions is not met:
- If e2= "TRUE", then c2="TRUE" and d2="TRUE"
- If d2= "TRUE", then c2="TRUE"
- If c2= "FALSE", then d2="FALSE" and "e2="FALSE"
- If c2= "TRUE"and either f2 OR g2="TRUE", then d2="TRUE"

Please let me know if you can help! Thank you

• Hello!
Please describe your problem in more detail. It’ll help me understand it better and find a solution for you. Thank you.

32. Z says:

hello, i would need a bit of a help with formula.
in sheet1 in column A i have names, they are starting from row 3. in row 2 starting from column B i have numbers from 1 to 31.
numbers represent dates. so i am filling that table with "1" when someone is there and i leave cell empty when that person was not working that day.

now hard part.
sheet 2
there i need some formula here i will be able to pick number/date and that formula to show me who was working on that day. then to print them, and to pick another date/number.

thanks

• Z says:

for first 2 dates i have done something like this
=IF(D2=1,IF(Sheet1!D4=1,Sheet1!C4,""),IF(D2=2,IF(Sheet1!E4=1,Sheet1!C4,""),""))
do i have to do same for all 31 dates or is there something easier?

• Hello!
If I understood your problem correctly, an easier solution would be to use a filter on your Excel sheet or create a pivot table.

33. Anees Rehman says:

Hi Alex! Hope all is well and that you could assist me with my Index formula as it's currently not working. I'm trying to use the index formula where it matches the keyword & returns the category. Unfortunately it's not working and hoping that you could assist.

Data
Post Date Check Description Debit Credit
07/24/2020 SHINE MEDICAL 21022.00
07/24/2020 TA INSTRUMENTS-W DIR-DEPT 7200.00
07/24/2020 ORBITAL SCIENCES EFT 25594.00
07/24/2020 THE BOEING CO BCAGPAYSVC 16480.00
Formula
Balance
{=INDEX(K2:K15,MATCH(TRUE,ISNUMBER(SEARCH(J2:J15,C2)),0))}

Keyword
SHINE MEDICAL
TA INSTRUMENTS-W DIR-DEPT
ORBITAL SCIENCES EFT
THE BOEING CO BCAGPAYSVC
UNEX DISB
CHECK NUMBER

Categories
WIRE
WIRE
WIRE
WIRE
WIRE
CHECKS PAID

34. Rajeev Kumar Choudhary says:

I need to apply formula for Cell A1, to find its 70% or 10000 whichever is less

35. Sai kumar says:

Hello, greetings for the day, my problem is i want to write a formula a1 has 350000 and a2 has 13000 and in the cell a3 i want to write like this if a1 < 500000 and also a2 greater than 12500 then a3 should be a2-12500. how can i do this? and if a1 400000 and a2 11000 and a3 should be a2 cause it is less than 12500. to the point if a2 is greater 12500 then it(a3) should be after deducting 12500 and if it(a2) is less than 12500 it can be that amount but primary condition is a1 must not have more than 500000. answer to this question is highly appreciated. Thank you in advance.

36. Danial says:

Good Morning! im trying to write a formula that looks at a frequency eg. 6 months, 1 year, 2 year, 5 years and if its X add that number to date inserted in a seperate column. so A would be 1 year, B would be "test date" and C "Due Date" currently have the below, but isn't working.
=IF(OR(E17="1 Year",EDATE(L17,12)),IF(E17="2 Years",EDATE(L17,24)),IF(E17="5 Years",EDATE(L17,60)))
Thanks in advance.

• Hello!
If I understand your task correctly, the following formula should work for you:

=IF(E17="1 Year",EDATE(L17,12),IF(E17="2 Years", EDATE(L17,24),IF(E17="5 Years",EDATE(L17,60))))

I hope this will help

37. Tapu Debnath says:

N4=IF(G4=1,"H4+I4-L4",IF(G4=2,"H4+I4",IF(G4=3,"H4")))

Incase of G4=1 Output come, H4+I4-L4 instead of numerical value
Incase of G4=2 Output come, H4+I4 instead of numerical value
...........
Is there any problem with my if formula? why i dont get numerical value on N Column?

• Hello!
Remove quotes from the formula

=IF(G4=1,H4+I4-L4,IF(G4=2,H4+I4,IF(G4=3,H4,"")))

38. Ananta Ram Sapkota says:

I want if b2=1,20% (1+1)*10
if b2=2,50% (2+1+2)*10
if b2=3,90% (3+1+3+2)*10 continue to n number how to possible?

• Hello!
I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Give an example of the source data and the expected result.
It’ll help me understand it better and find a solution for you. Thank you.

39. Lisa G says:

Hello, this site has some great tutorials, but I'm stuck with a problem I can't find a solution to. Hoping you can assist. I have a table showing values month over month, like this:
A1=project number
B1=Project name
C1=October budget
D1=November budget
E1=December budget
What I would like to do is verify the values month over month and if it is the same it replace the value with \$0, if it is more than the previous month, it shows the difference, if it is blank it shows the previous month as a negative loss, if it is less, it shows the difference as a negative. A bit convoluted but I feel the solution is just out of my reach!
L.

• Hello!
I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail?
Write an example of the source data and the result you want to get.
It’ll help me understand it better and find a solution for you. Thank you.

40. Rajib dewan says:

If an excel sheet acetic acid 15kg, another sheet acitic acid, how i correct spell automatically acetic acid for collect information through vlook up formula from a sheet where 15 kg have.this type of problems i face continuously when i work big data. Pls give me solution

• Hello!
I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Please specify what you were trying to find, what formula you used and what problem or error occurred. Give an example of the source data and the expected result.
It’ll help me understand it better and find a solution for you. Thank you.

41. chris L says:

I'm not sure if this has already been asked before but I am looking for a formula with both And and OR I believe that is looking at 3 different cells to have 4 different outcomes. with numbers between a certain figure
if a1,b1,c1 is less than 5 and less than 240 then it is letter if a1,b1,c1 is less than 26 and less than 353 it is Large letter and then if it a1,b1,c1 is less than 160 and less than 450 it is Packet? if over 160 and 450 then box.
Thank you for your time.

• Hello!
I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail? What result do you want to get? Thank you!

• Chris L says:

I would like 1 formula to display whether entering 3 dimensions (a1,b1,c1=25,150,350) if 1 of the cells is less than 5 and another is less than 240 it brings back "Letter" if 1 of the cells is less than 26 and another is less than 353 then it brings back "Large letter" if 1 of the cells is less than 160 and another is less 450 then it brings back "Packet" and if it has 1 cell over 450 then it is "box".

42. Tejpal Sharma says:

My query is that in marksheet or data sheet some cell are empty and i want that i only write student name and blank cell with subject show automatically.

43. Perla says:

Hi, Im trying to calculate the following,
Rep 1 belongs to team 1
Rep 2 belongs to team 2
Rep 1 has an individual Count
Team 1 has an average rate
for Example:
If rep 1 Count >=2 or the average rate for Team 1 >=3% then rep 1 will get 5 points, if the cell is blank then zero, if none of these is met then -2 points and same for team 2. this is what i have so far but is giving me an error on the formula:
=IF(AND(C8="Team 1",\$C\$30>=3%),5,IF(AND(C8="Team 2",\$C\$29>=3%),5, IF(D8>=2),5, IF(OR(D8="-",d8=””)0, -2))))
Hope this is clear, thank you in advance

• Perla says:

Nevermind, i was able to figure it out, =IF(OR(AND(C9="Team1",\$C\$30>=3%),(D9>=2)),5,IF(OR(AND(C9="Team2",\$C\$29>=3%)),5,-2))
Thanks anyways, you're examples really helped me.

• perla says:

=IF(D8="",0,IF(OR(AND(C8="Villains",\$C\$30>=3%),(D8>=2)),5,IF(OR(AND(C8="Heroes",\$C\$29>=3%)),5,-2)))

• Hello!
I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail?
What does "If rep 1 Count >=2"? Write an example of the source data and the result you want to get.
It’ll help me understand it better and find a solution for you. Thank you.

44. James Emil says:

This is scenario I am struggling to create a multiple formula:
1.If AA2 = Y and AB2 = Y results should be "Accrue income"
2 If AA2 = N and AB2 = N results should be "not Accrue Income" and
3. If AA2 = Y and AB2 = N results should be " Not Accrue Income and vice versa.
Thank you for your help

• Hello!
If I understand your task correctly, the following formula should work for you:

=IF(AND(A2="Y",B2="Y"),"Accrue income",IF(AND(A2="N",B2="not Accrue income"),"N",IF(AND(A2="Y",B2="N"),"Not Accrue income and")))

I hope my advice will help you solve your task.

• Erik says:

Hello.
I have a spreadsheet that is giving me an issue.
This what I have and its returning the correct response except for 128:Up with 132: Down
and it returns "FALSE" if AV5 is blank.
=IF(AW\$5>0,IF(AW132="Down",IF(AW128="Down","Yes",IF(AW128="Up",IF(AW132="Up","Yes","No"))),"Yes"))

What I want it to do in cell AV134:
If AV5 is blank then I want AV134 to also be blank.
IF AV132 AV128 AV134
Down Down Yes
Down Up No
Up Down No
Up Up Yes
Thank you for any clarification that you are able to provide.

45. Kirti Chaudhary says:

Please send me correct formula

BELOW 1 THEN 0
FROM 1 TO 250000 THEN ACTUAL FIGURE
FROM 250000 ABOVE THEN 250000

• Antti says:

Hi,
Again, I don't know why, but for me this message board wont show my larger (L) than and smaller (S) than symbols. I will use capital L and capital S for them.

Let's say that your number is on A column and starting from A1.

=IF(A1 L= 250000, 250000, IF(A1 S 1, 0, A1))

Hopefully this helps.
Sincerely,
Antti

46. Kelsey says:

Hi, I am hoping there is a way to do this. It seems basic, but I am new to these Excel IF statements. I have two columns (F & G) that I need to have high, medium and low values in. And then I want to have a priority level column where I assign a priority level of either high, medium or low based off of the combination of the entries in columns F & G.
Here is my scoring logic below. Wondering if this can be put into an IF statement and how to enter it?

If 1 value is high and the other is high then the result is high
If 1 value is high and the other is medium then the result is high
If 1 value is high and the other is low then the result is medium
If 1 value is medium and the other is medium then the result is medium
If 1 value is medium and the other is low then the result is medium
If 1 value is low and the other is low then the result is low

47. Kathy says:

I need help on a timecard formula. I'm brain-dead right now. If A + B + C > =40, "40" otherwise it should be the sum of A + B + C only. How do I do the "Otherwise" portion of this formula is the sum is less than forty hours?

48. Wade de Chalain says:

I have a list of mileage date captured over a month with numerous entries each day I need to extract the max and min mileage per day.
please help with a formula

49. piyush says:

16/4 - 10/2 = ?

50. Sebastjan says:

Hello everyone,
I hope you are well.
I have a question, if somebody can help me out, I am struggling long time already.

i have numbers from 0 to 360°. When i enter any numbers from 0 to 360, it should gave me the final answer as per below table. I did a formula that works but only for few numbers not all (=IF(AND(0H10), "0.5", "0")), so if am choosing numbers from 0 to 44, i have the answer 0.5 and more than 45 is answer 0,
but now i came to a problem how to insert multiple IF and AND in one long formula. I tried but always something wrong.
I would like to have in the empty cell with formula that is choosing automatically from the main table as per the insert number from 0 to 360°.

N 000 0.5
015 0.5
030 0.5
NE 045 0
060 0
075 0
E 090 -1
105 -1
120 -1
SE 135 -1.5
150 -1.5
165 -1.5
S 180 0
195 0
210 0
SW 225 -0.5
240 -0.5
255 -0.5
W 270 0.5
285 0.5
300 0.5
NW 315 0
330 0
345 0

Thank you very much guys, much much appreciated. Have a great day all !!

51. Marily says:

What kind of formula I need to obtain expiration date on courses that have different length of expiration i.e some expire in 7 days, some in 14 and others in 21 days. I only have their start date.

52. Swadhin Khamesra says:

D S.I 0-35 36-45 46-60 60+
300000 300000 1778 2576 3651 6642
300000 500000 2446 3451 4646 8283
500000 500000 1523 1936 2480 4127
500000 700000 1790 2240 2888 5167
600000 600000 1398 1707 2310 4127
600000 800000 1650 1993 2643 5006
800000 800000 1387 1570 2230 4641
800000 1000000 1655 1859 2576 5397
1000000 1000000 1409 1560 2089 4641
1000000 1500000 2052 2272 2982 6073
1500000 1000000 1325 1449 1955 3471
1500000 1500000 1968 2160 2848 4641
1800000 1000000 1306 1437 1967 3029
1800000 1200000 1563 1722 2325 3471
2000000 1000000 1294 1432 1979 2795
2000000 2000000 2506 2785 3682 4899
2000000 3000000 3652 4076 5310 6936

how to use if formula when i enter age, deductible and sum insured and automatically premium generated

53. Teddy says:

I need to write formula where if column A equals multiple value (e.g. 1, 2, 5 & 6) and column B is more than 7, then "Y" if not "N".
I wrote the formula as "IF(AND(OR(A=1, A=2, A=5, A=6), (B>7), "Y", "N")
i think it's wrong since there's no "Y" value at all.
Thanks!

54. WST says:

Hello.
I have a spreadsheet that is giving me an issue.
This what I have and its returning the correct response except for 128:Up with 132: Down
and it returns "FALSE" if AV5 is blank.
=IF(AW\$5>0,IF(AW132="Down",IF(AW128="Down","Yes",IF(AW128="Up",IF(AW132="Up","Yes","No"))),"Yes"))

What I want it to do in cell AV134:
If AV5 is blank then I want AV134 to also be blank.
IF AV132 AV128 AV134
Down Down Yes
Down Up No
Up Down No
Up Up Yes
Thank you for any clarification that you are able to provide.

55. Dinora says:

I am trying to work an amortization schedule that will be calculated base on Purchase date-Sale Date-Floor plan-Non Floor Plan Date and availability date.
Column G Column H Column K Column M
Date of Purchase Date of Sale Floor plan due date Loan End date
Jun-17 Jun-20 Dec-19 Jul-20
Jun-17 Available None May-22
Jun-17 June-20 None May-22
This is what i have so far and it is working great.
=IFS(\$K\$99=\$H\$99,0,P1>\$M\$99,0,P1=\$K\$99,\$O\$99,P1\$H99,0,P1>\$K\$99,O100-P32,\$K\$99=\$H\$99,0,TRUE,0)
But as soon as my Floor Plan end date has None, the formula doesn't work any more. I need to add a this condition to my formula IF(AND(AND(Month=G1,K1="None",h1="available",Loan amount,0)
Any suggestions?

56. Nadia says:

Hi, I am using the IF with AND & OR functions. Within that though, I have a cell with a flavour name, which I want to assign a number. How do I do that, please?

• Nadia says:

Basically, I want to say "(C3)banana + (D3)1.0 = (E3)\$40" or "(C3)banana + (D3)2.0 = (E3)\$75"
C3 being the flavour and D3 being the weight, while E3 has the function which gives the price for the stated flavour and weight.

57. Veicz says:

Hi, I have a pretty complex (for me) formula that i want to write.
If a<b, then a*c
If d e, AND if f="x", then a*g; BUT if f="y", then a*h; BUT if f="z", then a*i
If j k, AND if f="x", then a*l; BUT if f="y", then a*m; BUT if f="z", then a*n
If o p, AND if f="x", then a*q; BUT if f="y", then a*r; BUT if f="z", then a*s
If a>p, AND if f="x", then a*t; BUT if f="y", then a*u; BUT if f="z", then a*v
Can anyone please suggest a way how I can do this.

58. Stacy says:

Hi!
I need to highlight 20 columns, if 3 of the columns have yes then its good if not I need it flagged. How can I accomplish this?

59. Pau V says:

hey everyone, need help with a formula with a different outcome for 4 different Conditions;
IF A1=R output should be 25
IF A1=RR output should be 37.5
IF A1=G output Should be 50
IF A1=GG output Should be 93
please anyone???

• Antti says:

Hi,
Try this.
=IF(A1="R", 25, IF(A1="RR", 37.5, IF(A1="G, 50, IF(A1="GG", 93, "Wrong input"))))
Sincerely,
Antti

60. Christina says:

Hello - I need some help with IF/AND functions or maybe it is another formula entirely. I have two columns of data with numbers separating subsets. I am trying to assign the number value to each subset. So there could be 10 data points in one subset, and 20 in another but I want the same identifier for all of the datasets in that subset. This formula simply found that what I'm looking for is a number, but how do I return the value of that number? =IF(ISTEXT(B4),"Text",IF(ISNUMBER(B4),"Number",IF(ISBLANK(B1),"Blank",""))) Thank you!

61. Antti says:

Hi,
I think this answer should be exctremely easy, but I just cant find the correct answer.

I have column with differend numbers (1-18 representing differend areas and I have named the column "Area") and I like to use the Area column to let my formula count all the data from that spesific line. Formula looks something like this:

=AVERAGEIFS(E3:E1500, E3:E1500,"0", Area, 1)
(there might be errors in my typing, because Finnish version has a bit differend style to write the formula).

I would just like to be able to choose with the same time with the same formula multiple area numbers. Like:
=AVERAGEIFS(E3:E1500, E3:E1500,"0", Area, 1 or 3 or 8)

Thank you for your help.

• Antti says:

I don't know why it removed my typing for with the 0. The formula checking that the counted number is differend than 0 (with Finnish Excel it is " 0")

• Antti says:

Ok, larger than and smaller than wont show up :)

62. prudhviraj says:

I have days in one column line 1, 2, 5, 6, 1, 2, 6 5,3,2,0,4,6,7,4,1,3,2
I need the result like if the days are between 1 to 3, then the next column should update as 1 to 3 Days.

1 next to that cell should show 1 to 3 Days
2 next to that cell should show 1 to 3 Days
3 next to that cell should show 1 to 3 Days
4 next to that cell should show 4 to 6 Days

• Antti says:

Hi,
had to try. I have a suggestion for this. It is not pretty, someone for sure will find more elegant solution, but it should work.

For me in this forum the larger than and smaller than symbols doesn't seem to show at all so I'll use capital L for larger than symbol and capital S for smaller than symbol. Let's assume that the list of days is located to A-column and it starts from line 2. I wrote this formula on cell B2.

=If(A2L6, "error, too high date", IF(A2L=, "4 to 6 Days", IF(A2=0, "error too low", IF(A2S=3, "1 to 3 Days", "unknown error")

Hopefully this helps :)
Antti

• Hello!
If I understand your task correctly, the following formula should work for you:

=IF(A1<4,"1 to 3 Days",IF(A1<6,"4 to 6 Days","7 Days" ))

I hope this will help

63. Pam B says:

Hi, I am new to excel formulas. Can you help me with this
if a date listed in a column of another page equals the same date of the current page, then a specific column/row total from the other page equals total on current page designated column/row.
thanks

• Pam B says:

hmm, guess I don't even get a reply...? thanks

• Hello!
Your description of the problem is not very clear. However, a formula like this may be suitable for you.

=IF(A1=Sheet1!A1,SUM(Sheet1!B:B),0)

If this is not what you wanted, please describe your problem in more detail.

64. Courtney says:

Hello! I need help with an IF formula:

If column A is CAD, return value from column F
If column A is USD, return value from column F & G with a space between the two values. Column F will always be text and G will be numbers.

Thanks!

• Hello!
If I got you right, the formula below will help you with your task:

=IF(A1="CAD",F1,IF(A1="USD",F1&" "&G1,""))

or

=IF(A1="CAD",F1,IF(A1="USD",CONCATENATE(F1," ",G1),""))

or

=IFERROR(IFS(A1="CAD",F1,A1="USD",CONCATENATE(F1," ",G1)),"") (Office2019, Office365)

I hope it’ll be helpful.

• Courtney says:

Thank you sooo much this worked perfectly!!

65. Adrawa Charles Young says:

Please help in vote results to ascertain Candidate(s) who only WON, TIED in top results in cell G2:G106 "Who Won" in polling stations B2:B106 in colum B2 for
Two or more candidates results example Abraham Colum C2=40, Bryan Colum D2=70, Charles Colum E2=102 Denis Colum F2=102

• Hello!
I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Please specify what you were trying to find. What do you want to write in columns B and G? Give an example of the expected result.
It’ll help me understand it better and find a solution for you. Thank you.

66. G says:

How to i make a list of words in a drop down box in excel equal a number 1 or 0 when selected.

• Hello!
I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Give an example of the source data and the expected result.
It’ll help me understand it better and find a solution for you. Thank you.

67. Tracy says:

I am trying to have one cell reference another, but if blank have it reference a different cell with getting a FALSE response.
I have been using
=IF(L4="",D4)

and this works as long as L4 remains blank, but the goal is if I put something in L4 then THAT is what goes into my desired formula cell, not "FALSE."

• Tracy says:

Sorry, *without getting a "FALSE" response.

• Hello Tracy!
If I got you right, the formula below will help you with your task:

=IF(L4="",D4,L4)

I hope my advice will help you solve your task.

68. Alan says:

Hello, This has all been really helpful and i've solved an awful lot of issues with it. Unfortunately I have one I cant solve.
I'm trying to reduce a list of items that have qtys in the next column. The list may be 20 rows long but only 10 have qtys. I would like the new list to ignore blank rows and only pull through the 10 items into a new list.
Column A Column B
Books 5
Films
CDs 56
Tapes 4
Videos

The new list should read
Books
CDs
Tapes

Without blank rows between them, I've been playing with nested IF & VLOOKUP but cant get the blanks lines removed.I've started with a simple IF formula below
=IF(B1="","",A1)
I feel like the 'If True' part needs to have something that tells it to look for the next non blank cell.

• Hello Alan!
Select the range of cells in which you want to get the result. Then, in the formula bar, enter your array formula.

=IFERROR(INDEX(A1:A10, SMALL(IF(ISNUMBER(B1:B10), ROW(A1:A10)-0), ROW(INDIRECT("1:"&ROWS(A1:A10))))),"")

This is an array formula and it needs to be entered via Ctrl + Shift + Enter.
I hope my advice will help you solve your task.

• Alan says:

Well, it appears to be doing mostly what I'm looking for but has pulled the wrong items through. Does it matter if the number in question is 0.7, instead of a whole number?

I can't see how it has pulled the items through given the selection I have gone with as it would skip them as they are blank. So unsure where I may have selected the wrong details.

• Hello!
The formula I sent to you was created based on the description you provided in your first request. The formula works with any numbers. But if your number is written as text, then it won't work. You haven't written what exactly doesn't work. But I recommend checking your data. You haven't written what doesn't work. And I will not guess.

69. GC says:

I have 3 cells that have yes or no drop down boxes. How can I write a formula for a 4th cell that gives a different specific number value if all are yes, all are no, one is yes and two are no, two are yes and one is no, and all other possible combinations?

• Hello!
To count the number of "Yes" in cells, you can use the formula

=SUM(--(A1:D1="Yes"))

I cannot give more detailed recommendations, since the description of your problem is very short.

• Dreadwolf says:

I think this is what he wants Alex (hopefully lol):
Col A Col B Col C Col D
Row 1 Answer 1 Answer 2 Answer 3 Count
Row 2 Yes Yes Yes 3
In Cell D2 Type this in: =COUNTIFS(A2:C2, "Yes")
and as Long as your Yes is exactly the same as the yes in the formula you should be fine

70. Asher A says:

I have this problem:
Column A have either "Apples" or "Oranges", I'll input a number on B, and result on C
If A1 is "Apples", it should multiply B1 to 5, regardless of B1's value
If A1 is "Oranges" --- If B1 is greater than or equal to 50, B1 should multiply to 3
If B1 is less than 50, B1 should be subtracted by 10
If A1 is empty, C should be empty too

I did a lot of thinking, but can't get it right. Please help me!
Thank You and God Bless!

• Asher says:

Never mind this duplicate

• Hello!
If I understand your task correctly, the following formula should work for you:

=IF(A1="Apples",B1*5, IF(A1="Oranges", IF(B1>=50,B1*3,B1-10), "") )

• Asher says:

Thank You Very Much for the answer! :)

71. Luke says:

I am a salesman trying to take when I have reached a certain number in sales that I reach a new bonus level. So say I sell between 14 to 16 cars then I get a bonus of \$2500. How could I use an IF function and use a range for 14-16. Right now I have to do individual numbers like IF(C17=14,2500) then IF(C17=14.5,2500) and so on.

• Hello!
Your condition for the sale of 14 to 16 cars can be written as a formula

=IF(AND(C17<=16,C17>=14),2500,0)

I hope it’ll be helpful.

• Luke says:

Thank you so much! It worked! I was doing something close but it wouldn’t calculate

72. Dan says:

I am trying to right a formula that will do the following:
If Cell B13 is 1 or 2 then (B13*1.1)
If Cell B13 is 3 4 or 5 then (B13*1.05)
If Cell B13 is 6,7,8 or 9 then (B13*1)
If Cell B13 is 10,11,12,13,14 or 15 then (B15*.09)
I've spent hours trying to figure this out any help would be appreciated, Thanks

• Hello!
If I understand your task correctly, the following formula should work for you:

=IF(OR(B13=1,B13=2),B13*1.1,IF(OR(B13=3,B13=4,B13=5),B13*1.05,IF(B13<10,B13*1,IF(B13<16,B13*0.9, ) ) ) )

You can change this formula and use the OR function in all conditions.

73. Asher says:

Muchos Gracias! :)

74. Sanjay says:

Hi Need help on an a if formula.
Two partners (A&B) invest in a project; A puts in £80000 and B £Nil. At end of the project if there is a loss, A & B get NIL back. If its is a profit then;
(i) Profits are split 50:50 till both A & B have £80000 profit allocated; and
(ii) Once profits have been allocated as in (i), then all other profits get split between A and B as 40:60.
I need to be able to show on excel so that I can change the profit figure to show various scenarios (e.g. if profit was £20000, £100000, £400000, etc)
Thanks
Sanjay

75. Kat says:

Hello,
I have the following situation:
Column A - unique patient ID
Column B - Diagnostics Service
Column C - Therapy Service
Patient IDs can repeat in Column A if they have received multiple services (Diagnostics and Therapy)
I am trying to create formula:
If patient ID has diagnostics AND therapy, then display 1
If patient ID only has one service (either one), then display 0
Thank you

• Hello,
If I understand your task correctly, the following formula should work for you:

=IF(COUNTIFS(\$A\$2:\$A\$5,A2,\$B\$2:\$B\$5,"Diagnostics") + COUNTIFS(\$A\$2:\$A\$5,A2,\$C\$2:\$C\$5,"Therapy")=2,1,"")

I hope this will help

76. Asif says:

Hi,
I am working on a commission sheet and would like to put a formula so that the user does not have to manually put the commission %. I have four ranges and 0 to 20 % discounts.
So the criteria is:
1) amount is 50,000 and 250,000 and 500,000 1% commission.
IF function works fine till I have 1 and 2, but once I add 3 It gives FALSE value, cant figure out the issue can anyone help.
=IF(A550000,IF(A5250000,IF(A5<=50000,IF(B5,"0"%,2%))))))
Thank U

• Hello!
If I understood your problem correctly you can use something like this formula

=IF(A5<50000,0,IF(A5<250000,1,IF(A5<=500000,2,"")))

Replace 0,1,2 with what you need

77. Asif says:

Hi,
I am working on a commission sheet and would like to put a formula so that the user does not have to manually put the commission %. I have four ranges and 0 to 20 % discounts.
So the criteria is:
1) amount is less than equal to 50,000, disc is 0%, 4% commission,
2) amount is greater than 50,000 and less than equal to 250,000, disc is 0%, 3% commission,
3) amount is greater than 250,000 and less than equal to 500,000, disc is 0%, 2% commission,
4) amount is greater than 500,000 1% commission.
IF function works fine till I have 1 and 2, but once I add 3 It gives FALSE value, cant figure out the issue can anyone help.
=IF(A550000,IF(A5250000,IF(A5<=50000,IF(B5,"0"%,2%))))))
Thank U

78. pavan says:

Hi,
If i have 3 values of same number i.e A1=1,B1=1,C1=1, i need a result as "ok". Appreciate the help

• Hello!
I hope you have studied the recommendations in the above tutorial.
Please try the following formula:

=IF(AND(A1=1,B1=1,C1=1),"OK","")

79. aquaelle says:

HI, I was just wondering if you could help me.
What excel formula should I use to carry out this task:
If B1 is in A:A then C1 to be 'True'

Thank you so much

• Hello!
If I understand your task correctly, the following formula should work for you:

=IF(COUNTIF(A:A,B1),TRUE,"")

I hope this will help

80. Justin says:

Is it possible to use an IF statement to sum columns? That is, if any cell in E3:E17 = Y, sum the values in their respective C3:C17 cells

• Hello!
Use the SUMIF function. Read the detailed guide here.

81. Aziz Ahmad Zaheer says:

Thank you for your page, it really helped me in some of the formulas I was looking for.
I thank you for all your future assistance in advance and I will be keep in contact and.

82. Ethan says:

Is it possible to do a formula like this. If the value of cell F65 is "Negligible" and the value of cell G65 is "Insgnificant" then cell F66 will be "Low". I have multiple conditions I would need to add to this formula along with what I provided above. For example if F65 is "Very Low" and G65 is "Minor" then F66 will be "Low" also if F65 is "Negligible" and G65 is "Minor" then F66 is "Low" could we add all of this to one formula and add more conditions if needed later on?

83. Asher says:

Hello! I have another problem with my formula again, because my boss wants to add some details:

Column A have either "Oranges" or "Appleas", Column B have either "Fresh", "Moderate", or "Mature", I'll input a number on C, and result on D

If A1 is "Oranges"
(a) If B1 is "Fresh",
(1) If C1 is greater than or equal to 50, C1 should multiply to 3
(2) If C1 is less than 50, C1 should be subtracted by 10
(b) If B1 is "Moderate", the value of C1 is the same as result in D1
(c) If B1 is "Mature", the value of C1 should multiply to 3
If A1 is "Apples", it should multiply B1 to 5, regardless of B1 and C1's values
If A1 is empty, C1 and D1 should be empty too

I tried to modify the old formula, but it's confusing! Please help me!
Thank You and God Bless!

• Hello!
I recommend that you study the recommendations on how to use the AND function in the conditions of the IF function, which are given above in this article.

84. tHULO says:

hi
I want to set a criteria when met by three scenarios e.g. if extraction % is greater than 80%,waste % is greater than 60% and status is ready, Give me Sample the Area.

• Hello!
I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail? What result do you want to get? Thank you!

85. Mar Walter says:

I have a spreadsheet with 10 years and am trying to blend in raises over that time to figure an amount we can afford each year. Current Wage versus what they should be at (new wage). So, if current wage is 10 and new wage is 15, he is 50% behind. I have 100 employees and have 4 tiers to try to catch them up depending on how far behind whereby those that are further behind will get a bigger pay increase. My problem is they need to be more than tier 1 behind but less than tier 2 and, if the percentage increase brings them over the new wage, they should only get up to that new wage. G3 is the current rate and N3 is the new rate. O3 is the percentage behind they are. Q1,R1,S1,T1 are where I'm figuring the percentage behind is what will give them the % raise (which is Q2, R2, S2, T2). Help please?

G=IF(OR(G3>N3,G3),IF(OR(O3=\$Q\$1,O3=\$R\$1,O3=\$S\$1),(G3*\$S\$2)+G3,IF(OR(O3>=\$T\$1),(G3*\$T\$2)+G3,G3))))))

• Hello!
I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail? What do you want to calculate with this formula? What result do you want to get? Give an example of the source data and the expected result.
Thank you!

86. Ben says:

If a1 contain 60 and I input any value in a2 which cannot be divided by A1 as a whole number (eg. 120/60=3) as correct and (140/60=2.33 or 30/60=0.5) as wrong. How can I check for these and then advise person entering the a2 data that his value does not fall into the allowable multiples of 60 lots

• Hello!
You can use this formula for Data Validation or to check a condition

=IF(MOD(A1,60)=0,TRUE,FALSE)

I hope it’ll be helpful.

87. Ibrahim says:

Hello,

Below is column A, B & C and in column D I need is.. if A1 is equal to "UKB" and then if B1 is equal to C1 the field should be blank or it should say "PLS CHECK" and if A is not equal to UKB then Column D field should be blank.

UKB M07595448 M07595448
UKB M07595448 M07595448
UKB M07748431 M07748431
UKB M07744464 M07744464
UKB M07744464 M07744464
UKB M07685293 M07685293
UKB M07685293 M07685293
UKB M07685293 M07685293
UKB M07794223 M07794223
UKB #N/A M04787723
UKB #N/A M04395096
UKB #N/A M04395096
UKB #N/A M04395096
UKB #N/A M04395096
UKB #N/A M02083964
UKB #N/A M02083964
UKB #N/A M02083964
UKB #N/A M01861464
UKB #N/A M01861464
UKB #N/A M01861464
UKB #N/A M01861464
UKB #N/A M01861464
UKB #N/A M01861464
UKB #N/A M04802877
301219 #N/A M02731841
301219 #N/A M02731841
301219 #N/A M02731841
301219 #N/A M02731841
290120 #N/A M08189356

• Hello!
If I understand your task correctly, the following formula should work for you:

=IF(A1="UKB",IF(B1=C1,"PLS CHECK",""),"")

I hope this will help

• Ibrahim says:

Actually, I have multiple conditions. Firstly, if A1 is equal to "UKB" then it should check whether B1 is also equal to C1 and B1 & C1 matches then the D1 field should be blank and if B1 & C1 does not match then it shoudl display as "PLS CHECK" and suppose if A1 is not equal to 'UKB" then the field should be blank.

• Hello!
The formula I sent to you was created based on the description you provided in your first request. Why couldn't all the conditions be described at once? I think that you yourself can add all the conditions that you have to my formula.

• Ibrahim says:

I tried but not able to get it. Pls help me.

88. Arun Trivedi says:

How to distribute numbars according to slabs, and short upto 100 with different rates as well

• Hello!
I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Please specify what you were trying to find, what formula you used and what problem or error occurred. Give an example of the source data and the expected result.
It’ll help me understand it better and find a solution for you.

89. Mostofa says:

A+A+A=3.How is possible in MS Excel work sheet

90. goutham says:

HI,
Please help me with formula using ifs
Total marks is = 30
Time limit to complete the exam is 10 mins , prior to which following deductions will be made :
If the person completes the exam in 11 mins, 15% marks will deduct
from the total marks.
If the person completes the exam in 13 mins, 30% marks will deduct
from the total marks.
If the person completes the exam in 15 mins, 50% marks will deduct
from the total marks.
If the person exceeds 15mins, the marks will be nil.

91. Steve says:

Hello, i have three set of data inputted manually. I have another column for the set of data to be copied if i input a character corresponding to that set of data.
Example:
A , B , C , D
1 Q , R , S ,
2 10, 19 , 7
3 5 , 11 , 66 ,
4 1 , 9 , 3 ,
5 23 , 3 , 8 ,
i want to type into D1 "1" for all the data under Q (i.e A2:A5) and it will copy that data into column D. If i type in "2" into D1, i want all the data under R to be copied in the column D. And if i type in "3" into D1, it will copy all the data under S into column D.
Is this possible?
Thank you in advance

92. KRISHNA says:

Hi,
please help me out

i have so many column from A to N
i want to add value from A C D F H J L N
COLUMN B E G I K M CONTAIN DIGIT 1 TO 4
IF VALVE 1 OR 4 COME THEN IT ADD A AND C OR STOP TO ANOTHER COLUMN
IF VALUE 3 OR 2 COME THEN ADD A C D AND AGAIN SEARCH VALUE.

ONLY 1 OR 4 COME MEAN IT WILL STOP ADDING NEXT COLUMN OTHERWISE 2 OR 3 COME MEAN IT ADD ANOTHER COLUMN AND SEARCH FOR NEXT COLUMN.