Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel training courses - sumif two variables

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel training courses - SUMIF - Two Variables

excel training courses - SUMIF - Two Variables

ResolvedVersion Standard

Heather has attended:
Excel Intermediate course
Excel Advanced course
Outlook Advanced course
PowerPoint Intermediate Advanced course
Word Advanced course

SUMIF - Two Variables

how do i use the SUMIF function for two variables. i.e. i want to sum the values of products that were purchased between march and april AND were blue.

RE: SUMIF - Two Variables

Hi Heather,

I don't know what the trainers would do, but I'd use 2 columns to sort this out, then hide them to keep my spreadsheet tidy

let's say for example your dates purchased are in column D and your colours are in column E.

In row 1 of column G type this:

=IF(AND(D1>=39142,D1<=39202),1,0)

this will return a 1 if the date in cell Dx is between March 1st and April 30th

then in row 1 of column H, type this:

=IF(AND(E1="blue",G1=1),1,0)

this will return a 1 if cell Gx = 1 and if cell Ex = blue

then you can sum up column H and you have the total number of "blue" bought in March & April

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Display pictures on Chart Data Point

Replacing a single chart data point bar with a picture.
Step 1: Left click on a bar. Then, wait, and do a second single click on the bar. This will select just one data point.

Step 2: Right click on the bar and select Format Data Point.

Step 3: On the fill effects tab, choose a picture. Browse for a picture for that bar. Indicate if you want it to be stretched or stacked. Repeat for each bar.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.