SUMIFS problem

StephenZ4

New Member
Joined
Aug 7, 2017
Messages
6
I have a data sheet "FX Share Data" and an Analysis sheet.

I am suming data between 2 dates.

EUR is a column of currency prices
FXDate is a column of Dates

If I put the formula on the Data sheet =SUMIFS(EUR,FXDATE,">"&Analysis!$J$4,FXDATE,"<="&Analysis!$O$4) the Answer is 328.982

If I put the formula on the Analysis sheet =SUMIFS(EUR,FXDATE,">"&Analysis!$J$4,FXDATE,"<="&Analysis!$O$4) the answer is 0.000

This makes no sense!

Steve:mad:
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
It doesn't seem to like having criteria on a different sheet.

I've used sumproduct as an inelegant work around:

=(SUMPRODUCT((FXDATE>Analysis!$J$4)*(EUR))-SUMPRODUCT((FXDATE>Analysis!$O$4)
 
Upvote 0
If I put ">42000" it works. If I put ">"&A1, which has 42000 in it, I get #value

Are you sure that the criteria range is actually values, and not text looking like numbers?
test a few with =isnumber(cell-ref) if you get FALSE, your "numbers" are text
 
Upvote 0
Yes. Definitely numbers. Comes up true. Just something weird with excel. sumproduct works fine, sumif and sumifs don't.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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