Can I use the indirect function in sumifs?

amtrad

New Member
Joined
Feb 20, 2011
Messages
10
Hi All

I am trying to use the sumifs formula to extract data from a table, one of the criteria that I'm attempting to use is a date and I want to sum up data that is equal to and greater than a date in a cell. This didn't work as the formula didn't like the cell reference, however when I included the date along with a greater than or equal sign directly within the forumla it worked. My issue is that I need to constantly change this date and I would like to be able to change one cell and the data updates rather than go and change the formula each time!

I thought that I could use the indirect function but no joy - am I on the wrong path? Can the sumifs accept the indirect formula?

Any help appreciated - BTW I don't do VBA. I have included the formula below for reference.

=SUMIFS(Data[AMOUNT],Data[DATE],">31/03/2010",Data[DATE],"<=31/12/2010",Data[NOMINAL_CODE],[@[ACCOUNT_REF]])

regards

Amtrad
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Welcome to the forums!

Lets assume that A1 contains the date 31/03/2010 and A2 contains 31/12/2010. Then you can use:

=SUMIFS(Data[AMOUNT],Data[DATE],">"&A1,Data[DATE],"<="&A2,Data[NOMINAL_CODE],[@[ACCOUNT_REF]])
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

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