3 Conditions "Earliest Date" , "Latest Date", "String"

xijiangwoo

New Member
Joined
Dec 23, 2014
Messages
5
Hello Everyone !

I am a total noob to Excel. I've been slowly teaching myself the past 2 weeks. I have the below formula working with multiple conditions.

=SUMPRODUCT((CompletionDate>=Z15)*(CompletionDate<= AA15)*Engraving)

The CompletionDate is a range column of dates, Z15 is the cell with the earlier date and "AA15" is cell with the later date. If those conditions are met, it will show a total from the "Engraving" range column and display the total in cell "Z25".

I would like to add a criteria to search a column (Person) of 4 different names and display the total from "Mike" (One of the four names).

Am I barking up the wrong tree here?

Any help is grealty appreciated !!!

Xi
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
You can add more criteria, like
=SUMPRODUCT((CompletionDate>=Z15)*(CompletionDate<= AA15)*(Person="Mike")*Engraving)
Using sumproduct I would suggest
=SUMPRODUCT(--(CompletionDate>=Z15),--(CompletionDate<= AA15),--(Person="Mike"),Engraving) which is the same thing, but I understand to be more efficient.
What version of excel do you have? =SUMIFS( would be better if you have Xl2010+ (and maybe xl2007)
 
Upvote 0
Thank you. I am working with "2010". I couldn't figure out how to use sumifs, so I found a sumproduct formula to help me get started.
 
Upvote 0
Welcome to the MrExcel board!

Suppose you put "Mike" in cell AB15 then the SUMIFS version would be

=SUMIFS(Engraving,CompletionDate,">="&Z15,CompletionDate,"<="&AA15,Person,AB15)
 
Upvote 0
Thanks Peter !

What if I wanted to add multiple named ranges? "engraving" "ETCH" "Cutout"

I'm trying to read the help files as well.

Thanks for all of the input !

Xi
 
Upvote 0
What if I wanted to add multiple named ranges? "engraving" "ETCH" "Cutout"
If that means you want to sum those 3 named ranges when the dates are between earliest & latest and Person = Mike, then I would return to SUMPRODUCT.

=SUMPRODUCT(--(CompletionDate>=Z15),--(CompletionDate<= AA15),--(Person=AB15),Engraving+ETCH+Cutout)

If your data is in a 'Table', then you may also find this thread useful.
 
Upvote 0

Forum statistics

Threads
1,214,383
Messages
6,119,196
Members
448,874
Latest member
Lancelots

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