SUMIFS not working to search column for any value that contains specific date

vijayjeyapalan

New Member
Joined
Mar 3, 2017
Messages
9
Hi there,

I am in need of help with a SUMIFS function I'm trying to use.

I am trying to sum the total quantity of products sold in a column if it matches the SKU and date in the corresponding column.

In this first image you can see the function:
Sheet 1: https://postimg.org/image/xi73c6fij/

=SUMIFS(input!R:R,input!V:V,'CD Test'!A13,input!P:P,"*"&L1&"*")

The first criteria works and what I'm doing there is: Matching the sku in referencing the SKU in cell A13 (sheet 1), reference the range in the second sheet (sheet 2) for column V

Sheet 2: https://postimg.org/image/d9jpqgg7f/

The second criteria doesn't work and what I'm doing there is: Matching the date in L1= 2017-03-10 (sheet 1), reference the range in the second sheet (sheet 2) in column P

IF both are true then sum the values in column R that correspond true to both criteria only.

The issue with the second criteria is that I have a single date 2017-03-10 (that is formatted as date, and is True if you do =isnumber(L2)) and I've added wildcard "*"&L2&"*" because when it looks in the range in Sheet 2 in column P the values are formatted as "2017-03-10 11:41:05 AM" (if you do =isnumber(any value in P) is TRUE) and I've tried to reformat to Date as well and doesn't return anything.

If anyone knows how I can fix this that would be very helpful!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You can't use wildcards on numeric values (Dates are just numbers)

Is L1 a real date as well, or a text string?
What does =ISNUMBER(L1) return

Does L1 also contain the time like in P ?
What does =INT(L1)=L1 return
 
Last edited:
Upvote 0
=ISNUMBER(L1) returns true

L1 does not contain time like in P

=INT(L1) returns the same value back:
2017-03-10

<colgroup><col></colgroup><tbody>
</tbody>
 
Upvote 0
Try

=SUMIFS(input!R:R,input!V:V,'CD Test'!A13,input!P:P,">="&L1,input!P:P,"<"&L1+1)
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top