For powerful data analysis, you may often need to build an Excel IF statement with multiple conditions or use IF together with other functions. This tutorial will show you the most effective ways to do this. Continue reading
by Svetlana Cheusheva, updated on
For powerful data analysis, you may often need to build an Excel IF statement with multiple conditions or use IF together with other functions. This tutorial will show you the most effective ways to do this. Continue reading
Comments page 43. Total comments: 4557
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???
Hi,
Try this.
=IF(A1="R", 25, IF(A1="RR", 37.5, IF(A1="G, 50, IF(A1="GG", 93, "Wrong input"))))
Sincerely,
Antti
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?
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.
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?
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.
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?
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.
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!
D S.I 0-35 36-45 46-60 70+
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
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.
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 !!
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
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?
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
Please send me correct formula
BELOW 1 THEN 0
FROM 1 TO 250000 THEN ACTUAL FIGURE
FROM 250000 ABOVE THEN 250000
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
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.
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.
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
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.
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.
=IF(D8="",0,IF(OR(AND(C8="Villains",$C$30>=3%),(D8>=2)),5,IF(OR(AND(C8="Heroes",$C$29>=3%)),5,-2)))
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.
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!
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".
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.
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.
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.
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,"")))
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
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.
I need to apply formula for Cell A1, to find its 70% or 10000 whichever is less
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
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
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.
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! 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.
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.
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.
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!
Hi,
The reason it is showing D1+E1 is because you put it quotation marks.
just put D1+E1.
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)?
Hello, Can you help me solve this?
I need a formula in cell C5 that does the following:
IF A1+B1 4 but 9 but 15, return $75
Thanks!
Hello!
Sorry, it's not quite clear what you are trying to achieve. Could you please describe it in more detail? What result do you want to get? Give an example of the source data and the expected result.
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.
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.
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
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.
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.
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.
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.
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
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.
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!!
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.
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.
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.
Thanks a lot, Alexander.
It works perfectly!
Have a nice day.
Cheers,
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
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
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)
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?
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
Perfect! thanks!
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?
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
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")
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.
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.
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 )))