Could somebody help with a question I have. I'm stuck with an excel formula. I need an indicator to tell me when something is on target or out of target.
I've attached a screen shot of an example where I have a deadline, the date it was completed and what it should read along with how far I got writing a formula. If somebody could help me I would be grateful.
It should flow like this; if deadline(A2) is before today and date completed (B2) is blank OR/AND if date completed (B2) is more than the deadline (A2) then it is out of target, if not it is in target. Can't get it right so help would be appreciated.
=IF(AND(ISBLANK(B2),A2>TODAY(),OR(B2>A2)),"On Target","Out of Target")
Excel pic
So perhaps your logic should be:
OR(B2>A2,AND(ISBLANK(B2),A2>TODAY())
Based on what you wrote.
So, based on the comment you STILL need the if() statement:
=IF(OR(B2>A2,AND(ISBLANK(B2),A2>TODAY()),"On Target","Out of Target")
To get it to work. I did assume that suggesting you correct the logic was enough.
This should work for you, try, so you may use either of the ways using IF() or using CHOOSE()
• Formula used in cell C2
=CHOOSE((((A2>TODAY())+(B2=""))+(B2>A2))+1,"On Target","Out Of Target")
Or,
• Formula used in cell D2
=IF(OR(OR(A2>TODAY(),B2=""),B2>A2),"Out Of Target","On Target")
Related
I have the following formula:
=IFERROR((INDEX(TRACKER!$A$2:$A$500, SMALL(IF(AND($B$3<=TRACKER!$C$2:$C$500,$B$4>=TRACKER!$C$2:$C$500),ROW(TRACKER!$C$2:$C$500)-MIN(ROW(TRACKER!$C$2:$C$500))+1, ""), ROW($A1)))),"")
That pulls data depending on the beginning IF(AND( statement. I was trying to get it to pull dates that are between B3 and B4 (so, >=B3 but <=B4)
The problem is, it doesn't seem to like my AND statement and keeps pulling nothing (""). If I delete one of the statements in the AND and just pull >=B3 or <=B4, it works fine...so it's not a date formatting issue.
Would appreciate any way to incorporate date range into this array formula, thank you.
Perfect Scott, thank you very much as always for the swift and concise response. I replaced it with a "*" and it all worked out. Appreciate it.
Please refer the below screenshot:
Assume that today's date is 29-4-2018 (dd-mm-yyyy). There are two users (User 1 and User 2). Both of them have worked in various Workspaces (Workspace1, Workspace 2 and Workspace 3) on different dates.
I want to calculate the number of jobs a user has done on today's date in various workspaces and then display the count in cell C2 and C3 respectively so that the result is something like this:
Any Idea how to write a formula to achieve this result?
P.S. I know I have to try it first, but I a complete newbie to excel and don't know much except for very basic formula. For this one, I don't even know where to start.
EDIT:
Just in case if anyone wants to download this workbook
Use the following formula in C2 cell
=COUNTIFS($B$8:$B$26,B2,$D$8:$D$26,"29-04-2018")+COUNTIFS($E$8:$E$26,B2,$G$8:$G$26,"29-04-2018")+COUNTIFS($H$8:$H$26,B2,$J$8:$J$26,"29-04-2018")
If it is actually today then you can replace 29-04-2018 with Today() so, the formula will be
=COUNTIFS($B$8:$B$26,B2,$D$8:$D$26,TODAY())+COUNTIFS($E$8:$E$26,B2,$G$8:$G$26,TODAY())+COUNTIFS($H$8:$H$26,B2,$J$8:$J$26,TODAY())
Edited answer from Scott Craner comments
=COUNTIFS($B$8:$H$26,B2,$D$8:$J$26,TODAY())
I have used a formula to create a point system for my class. My formula is below, and it works great except that when C2 is zero, the score still shows "10" when I'd like it to be zero as well. I realize that this is an error in my formula but I can't seem to fix it without excel giving me an error message. Could anyone help me edit this formula to fix it?
(I'm a teacher and I'm just trying to make my life a little easier with excel.)
IF(TRIM(C2)="","",IF(C2<6.99,10,IF(AND(C2<=7.99,C2>=7),9,IF(AND(C2<=8.99,C2>=8),8,IF(AND(C2<=9.99,C2>=9),7,IF(AND(C2<=10.99,C2>=10),6,IF(AND(C2<=11.99,C2>=11),5,IF(AND(C2<=12.99,C2>=12),4,IF(AND(C2<=13.99,C2>=13),3,IF(AND(C2<=14.99,C2>=14),2,IF(AND(C2<=15.99,C2>=15),1,IF(AND(C2>=16,C2<=100),0))))))))))))
your first if statement says if c2 is nothing then its blank. why not make another one that check if its 0
This is untested but try
IF(TRIM(C2)="","",IF(TRIM(C2)=0,0,IF(AND(C2<6.99,10,IF(AND(C2<=7.99,C2>=7),9,IF(AND(C2<=8.99,C2>=8),8,IF(AND(C2<=9.99,C2>=9),7,IF(AND(C2<=10.99,C2>=10),6,IF(AND(C2<=11.99,C2>=11),5,IF(AND(C2<=12.99,C2>=12),4,IF(AND(C2<=13.99,C2>=13),3,IF(AND(C2<=14.99,C2>=14),2,IF(AND(C2<=15.99,C2>=15),1,IF(AND(C2>=16,C2<=100),0))))))))))))))
Again this is untested but hopefully you see what I am trying to do.
Perhaps:
=IF(C2="","",IF(C2=0,0,MAX(ROUNDUP(MIN(16-C2,10),0),0)))
long time no chat, I am running into a situation in where a formula I wrote up seems not to be working correctly. I know it's probably me, but logic based programming seems to be the bane of my existence.
=IF(D1>2010,"New",IF(D1<2010,"Old",""))
Is the formula in question, now if I got this down correctly, which I thought I did, is that if D1 is greater than the year 2010 the cell would say New, and if it's less than 2010, it would say Old.
It's not working, for some reason I can't figure out why.
I have a similar formula that works:
=IF($B155<>"","Full",IF($J155<>"","Full","Empty"))
I figured the logic would be similar, it seems I'm wrong. Can someone help me solve this simple quandary, logic based math has never been my strong suit. Thanks.
If D1=2010, there's no true condition in IF clauses, and the result will be a blank cell ("").
=IF(D1>=2010,"New",IF(D1<2010,"Old","")) should do the trick.
If D1 is formatted as a Date, the following formula will give the desired result:
=IF(YEAR(D1)>=2010,"New",IF(YEAR(D1)<2010,"Old",""))
How do I nest IF statements in Excel 2010? I found my inspiration trying to organize data from Evolus Pencil Support Tickets.
Here is my desired result: I want to nest IF statments to choose between different status levels, such as Fixed, New, Invalid, Done, Duplicate, etc. However, I had to make several tables to achieve this and when I tried to test it, the IF statement only gives me the first choice (Fixed).
Here is the formula to test whether the number is 1-6 and add on the number, and the status level:
=IF(U2="1",
CONCATENATE(VALUE(U2),$V$2,IF(U2="2",
CONCATENATE(VALUE(U2),$W$2,IF(U2="3",
CONCATENATE(VALUE(U2),$X$2,IF(U2="4",
CONCATENATE(VALUE(U2),$Y$2,IF(U2="5",
CONCATENATE(VALUE(U2),$Z$2,IF(U2="6",
CONCATENATE(VALUE(U2),$AA$2,"NO")
The result, however, in the corresponding cells is: Cell is U2 1FixedFALSE Cell is U3 false
Please check out the spreadsheet here
http://win7guruquestions.posterous.com/my-spreadsheet-illustrating-selection-and-if
I hope that you can help me with this. Thanks in advance
the formula posted is missing closing brackets. On the assumption it should be
=IF(U2="1",CONCATENATE(VALUE(U2),$V$2),
IF(U2="2",CONCATENATE(VALUE(U2),$W$2),
IF(U2="3",CONCATENATE(VALUE(U2),$X$2),
IF(U2="4",CONCATENATE(VALUE(U2),$Y$2),
IF(U2="5",CONCATENATE(VALUE(U2),$Z$2),
IF(U2="6",CONCATENATE(VALUE(U2),$AA$2),"NO"))))))
it works, provided values in U2 are entered as strings.
An alternative formula:
=IF(AND(VALUE(U2)>=1,VALUE(U2)<=6),U2&INDEX($V$2:$Z$2,1,VALUE(U2)),"NO")