# problem with SUMIF formula

#### 34sweetness

##### Board Regular
I need help with writing a formula to summarize data from a named range.
Let me try to explain my situation (I tried to download the Html Utility, but it is not working, so I will try and convey my problem through words, please bear with me!)

I have a sheet named “Data” that has 29 columns w/ column headings in row 1. Row 2 thru 1785 contains information that is input row by row thru a “UserForm”. The entire 29 columns and 1785 rows is a range named “DataSheet”. This range will increase in size by one row each time the “update” button is pressed on the UserForm (basically the range is dynamic and changes each time new information is entered).

Column 1 on the “Data” sheet is titled “Machine” and can be one of three number: 370, 445, and 452. Column 2 is titled “Size” and can be one of seven numbers: 16, 19, 21, 23, 25, 27, and 29. Column 3 is titled “Date Released” and is a date (02/24/2002, etc.) Column 6 is titled “QtyInsp” and can be any whole number (0, 1, 2….25…31…whatever).

I have a second sheet in the same workbook named “Sept” and basically is a summary of the information from the “Data” sheet for the month of September. Cell A1 contains the word “SIZE” and B1-H1 have the 7 sizes (16, 19, etc.). Cell A2 contains the words “Total Inspected”.

Now on to my question. What would be the formula in Cell B2 that would give me this:

The SUM of “QtyInsp” IF “Machine”=370 AND “Size”=16 AND “Date Released” is between 08/24/2002 and 09/27/2002.

(Note: these dates are one cell ranges named “Sept_Begin” and “Sept_End” respectively)

I want to include all the data in the named range “DataSheet” that would be changing over time. I want the summary to be “automatically” updated as new information is entered onto the “Data” sheet.

Can anyone help me?

### Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

#### Yogi Anand

##### MrExcel MVP
Hi 34sweetness:

Your data is setup very well to be used with the DSUM function ...

=DSUM(data!datasheet,6,criteria)

see the worksheet simulation ... in sheet Sept, I put the criteria in rows 1 and 2, and I moved your original entries in rows 1 and 2 to rows 4 and 5
Book1
ABCDEFGH
1MachineSizeDateReleasedDateReleased
237016>=8/24/02<=9/27/02
3
4SIZE16192123252729
5TotalInspected25
Sept

Please post back if it works for you otherwise explain a little further and let us take it from there.

Regards!

Yogi Anand

#### 34sweetness

##### Board Regular
Thanks Yogi!!!
It works wonders, that is just exactly what I was looking for!

I knew it had to be an easy thing...and with named range criteria, I can summarize anything!!!

The site is the BEST!

##### MrExcel MVP
On 2002-10-24 17:08, 34sweetness wrote:
Thanks Yogi!!!
It works wonders, that is just exactly what I was looking for!

I knew it had to be an easy thing...and with named range criteria, I can summarize anything!!!

The site is the BEST!

You can't copy down this DSUM formula for other machines, at least, not in a hassle-free manner.

Replies
0
Views
29
Replies
2
Views
226
Replies
6
Views
283
Replies
5
Views
169
Replies
0
Views
96

1,181,334
Messages
5,929,372
Members
436,665
Latest member
MonkeyNotDonkey

### 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.

### Which adblocker are you using?

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

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