COUNTIFS statement, =COUNTIFS(V60:V91, ">="&0,V60:V91,"<="&30) - excel

I'm attempting a COUNTIFS statement,
=COUNTIFS(V60:V91, ">="&0,V60:V91,"<="&30).
I believe I'm making syntactical error, but I can't finding it. Do you know what I'm doing wrong?

There is nothing wrong with your syntax. You have text-that-look-like-numbers in column V.
Note the right-alignment of the numbers in column V. These are true numbers and are counted by your formula in A1. Note the left-alignment of the text-that-look-like-numbers in column W. They are not counted by the same formula in B1.
Use Data, Text to Columns, Fixed Width, Finish on your column V to turn them into right-aligned true numbers.

Based on the comments in your question, you can try this if you are trying to count dates where the day of the month is Greater than or equal to zero (which would be all days), and the days that are less than or equal to 30...so all days except the 31st. If this is wrong interpretation, let us know. The following formula is based on your dates being stored as numbers and formatted to display as a date and not a date stored as text.
=sumproduct((day(V60:V91)>=1)*(day(V60:V91)<=30))

Related

Find minimum date in row with multiple data types in Excel

I am trying to find the minimum date in a row that has both dates and number data types. I tried to use the MINIFS function but that still produces the number value as the minimum, rather than the date. I am restricted to doing this as an in-cell function, rather than in VBA. Also, the data structure is a bit wonky, I know, but it can't be changed.
=MINIFS(A2:C2,A2:C2,CELL("format",A2:C2)="D4")
When I enter =MIN(IF(A6:C6>40000,A6:C6)) I get a #Value error. Excel doesn't like the range before the > symbol.
Remember that dates in Excel are calculated as number of days starting from January 1st, 1900.
Thus, if you look at your dates as numbers, you will see that it's in fact a number '44042'.
Knowing that, you can use MIN together with IF formula:
=MIN(IF(B5:D5>43831,B5:D5))
Where your suggested numbers are in cells B5:D5 and '43831' is 2020/01/01.
Of course, if you have numbers with high values, this solution should be adapted.
Here's a screenshot I made:
img

Excel not properly comparing dates, despite same cell format

I have two date rows. Both are formatted as dates. When I do a logic test to see whether the two dates, excel is not recognizing them as the same.
Here is a screenshot of the cells:
This is to confirm that both cell rows are formatted as date:
This is to confirm that the equality check row is referencing the right cells:
I'm stumped. Does anyone have any idea what's going on here? Thanks
If you have confirmed that both are actually dates, and not text masquerading as dates, then time is most likely the issue. Note that time is represented via the decimal such that .5 equals noon.
Assuming you just want to know if the dates match independent of time you can use
INT(G4) = INT(G6)
If you want to compare just the dates use:
=Floor(G4,1) = Floor(G6,1)
Format can mask the real cell value. Format both cells as General, then you can see the difference.
If a cell stays a "date" when it is formatted as General, then the cell is most likely text, not a date.
When formatted as General, you can clearly see if the number has any decimals, i.e. time on top of the date.

Dates are not recognized

I have written a conditional formula to recognize two dates (greater than and last than). However, there are a few dates that are returning 'false'. All of the columns are formatted as a date. Can someone please help?
This is not a direct answer to the question asked, but as Scott said, the formula you use is much more complex than necessary. If you need to return a number for a date that falls within a period and the periods do not overlap, the following formula can be used:
=SUMPRODUCT((AQ3>=$DF$3:$DF$15)*(AQ3<=$DF$3:$DF$15),$DH$3:$DH$15)
If you need to process text values, it is more complicated. For example, if 'expired' is the only value (also for dates that do not fit into any period), then we can add the IF function to the previous formula:
=IF(SUMPRODUCT((AQ3>=$DF$3:$DF$15)*(AQ3<=$DF$3:$DF$15),$DH$3:$DH$15)>0,SUMPRODUCT((AQ3>=$DF$3:$DF$15)*(AQ3<=$DF$3:$DF$15),$DH$3:$DH$15),"expired")

Comparing two columns in excel for similarities

I have two columns in excel A and B from 1 - 1400
The value in column A is 10 characters, "K0123456789" and column B is 9 characters "0123456789"
I need to compare the value in column B is the same value as column A without the "k" and highlight it if they do not match. I am not familiar with excel too much, so any information here would help so I do not have to go through all these lines myself on a daily basis.
Thanks for any help!
GenZade
You can put a formula in column C such as (For cell C1):
=IF(A1="K"&B1,"Match","No Match")
Of course, you could also add conditional formatting with a similar formula if you want to literally highlight it.
i would have just commented on neelsg post, but i don't have enough reputation for that, apologies. his solution works based on string values rather than numerical values. Some kind of preceding zeros might not work nicely with it. to compare actual numerical values you can use the following:
=IF(RIGHT(A1,LEN(A1)-1)*1=B1,"match","no match")
so depends if you want to match them as strings or actual numbers

Excel Finding Value Based On Criteria

i have multiple columns in my excel spreadsheet (DOLLAR, Date, Year), i am trying to get the values in column DOLLAR, if the DATE is greater than 01 Jan 2014, and the YEAR is 2014.
I tried sumproduct, countifs, if, match and even combinations of them but i cant seem to get the value of DOLLAR based on the criteria. how would i go about doing this? i am still a bit new to this so i don't quite know all the functions yet.
i have something like this right now, also all the DOLLAR value that meets the criteria will all be summed up.
=IF('CDT DWGS-2014'!F:F=2014,IF('CDT DWGS-2014'!Q:Q>DATEVALUE("01-Jan-2014"),"GET DOLLAR VALUE",0),0)
Thank you
Ok, given your extra comments, I also tried to make it a bit more robust for you, so suppose, in your sheet you had:
A1 = Start Date
B1 = End Date
And in your CDT DWGS-2014 sheet, the Dollar amounts were in column A and the dates were in column B, You could use the following formula:
=SUMIFS('CDT DWGS-2014'!A:A,'CDT DWGS-2014'!B:B,">="&A1,'CDT DWGS-2014'!B:B,"<="&B1)
This could be made simpler, but this should do the trick.
Hope this helps!!
Use this formula. Column A, B and C are for DOLLAR, Date and Year respectively.
=SUMPRODUCT(A2:A11,--(B2:B11>DATE(2014,1,1)),--(C2:C11=2014))

Resources