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.
Related
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")
I am trying get excel to show the word "Error" if the date in cell M2 is in the past AND if column L2 is blank however this is not working, any help is much appreciated!
It would be even better if I could get it to see if the date IS today or before today, rather than just before today
=IF(AND(M2<TODAY(),L2=""),"ERROR","OK")
Try This
=IF(AND(M2<=TODAY(),ISBLANK(L2)),"ERROR","OK")
I've replaced commas with semi-colons in Google Sheet and it works:
=IF(AND(M2<=TODAY();L2="");"ERROR";"OK")
Check your regional settings, as user #SJR pointed out.
First post, sorry if it's not according to site preferences. I searched around and couldn't find a post that was exactly like this, but sorry if this is a repeat as well.
I have the following code:
=COUNTIFS(A:A,"="&C3, B:B,"<>""")
For clarity, the code is supposed to identify instances where column A has a specific value (C3), and where column B is empty.
I'm familiar with Countifs, but it was the "if blank" portion that I've been really struggling with. On top of that, column B is populated with formulas, making this seemingly more challenging from my perspective as a couple methods I've tried only work if the cells are truly unpopulated. What I can say is that this formula is working with almost all of my examples, except 1, and I have no idea why this would be. For that matter I'm not entirely sure why this code works at all.
Any insight would be greatly appreciated.
Thank you very much.
To count if blank: "="
=COUNTIFS(A:A,"="&C3, B:B,"=")
Or if this is easier to understand:
=COUNTIFS(A:A,"="&C3, B:B,"=" & "")
Which is the same.
"=" in COUNTIFS does not match blanks that result from formulas. Dont ask me why!
As workaround, you can use the flexible and never vexing SUMPRODUCT:
=SUMPRODUCT((A:A=C3)*(LEN(B:B)=0))
Frequent browser, first time poster. Please go easy:
I have spent the last few days searching online, and on here for a solution to a problem I have encountered for the first time. I have a report that pulls from multiple worksheets. One column is a formula that does a VLOOKUP to another sheet and pulls back a date, if it exists. I then have a cell at the top of the sheet that calculates how many dates are pulled back out of all of the rows (to calculate % complete). This is where I am having the problem. I have tried variations of COUNTIF, COUNTA, COUNTBLANK, and so on, and formulas trying to reverse calculate,
=SUM(C4)-COUNTIF(Table3[2014 Process Date],"")
At first it appeared to work, but in this example, I had 1949 rows, and dates only populated in 7 of those rows. In theory it should return 7. Instead it is returning 237. I have done multiple filters, and manually reviewed the data in the column, and only 7 dates are there. The column has the VLOOKUP in and IFERROR nest,
=IFERROR(VLOOKUP(A12,Table_TaxData.accdb3[#All],240,FALSE),"").
I am guessing I am overlooking something silly, and was hoping someone would be able to help steer me in the right direction, or let me know what I am missing. Thanks in advance for any help!
Wow, looks like I need some more coffee! Thank you, I guess I assumed that it would be much more complicated than that. I just threw in
=COUNT(Table3[2014 Process Date])
And it worked like a charm! Thanks again!
If I'm reading your formula correctly, the target cells hold either the DATE, or a blank "".
If so, you can do a COUNTIF and do this:
=COUNT(B:B)
to get # of dates.
or
=COUNTA(B:B)-COUNT(B:B)
to get # of blanks.
(I used column B, not sure where your final values are in you're looking for - adjust accordingly)
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",""))