Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TMF in MN
 
Posts: n/a
Default If then with 2 criteria, then sum

Using a spreadsheet with the following format:
A B C
1 JEFF MONDAY $5.00
2 LISA MONDAY $10.00
3 LISA MONDAY $5.00
3 JEFF TUESDAY $15.00

I need a formula in column E and F to calculate how much each person sold on
a certain day. If this is true, and this is true, sum this....

D E F
MONDAY TUESDAY
1 JEFF $5.00 $15.00
2 LISA $15.00 $-

THANK YOU!!!
TMF

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default If then with 2 criteria, then sum

=SUMPRODUCT(--($A$1:$A$4=$D2),--($B$1:$B$4=E$1),$C$1:$C$4)

Place this formula in E2 and copy it across and dow. I used a table like
this (notice it includes the day names in row 1).

A B C D E F
1 JEFF MONDAY $5.00 MONDAY TUESDAY
2 LISA MONDAY $10.00 JEFF $5.00 $15.00
3 LISA MONDAY $5.00 LISA $15.00 $-
3 JEFF TUESDAY $15.00


You could also use something like this if you don't want the header row.

=SUMPRODUCT(--($A$1:$A$4=$D2),--($B$1:$B$4="MONDAY"),$C$1:$C$4)
goes in E1

=SUMPRODUCT(--($A$1:$A$4=$D2),--($B$1:$B$4="TUESDAY"),$C$1:$C$4)
goes in E2

copy down as needed.

Here is the table example.

A B C D E F
1 JEFF MONDAY $5.00 JEFF $5.00 $15.00
2 LISA MONDAY $10.00 LISA $15.00 $0.00
3 LISA MONDAY $5.00
4 JEFF TUESDAY $15.00


PS - One thing to note is B2 contains an uneeded blank space at the end that
might cause you to have an error. "MONDAY" does not equal "MONDAY "


"TMF in MN" wrote:

Using a spreadsheet with the following format:
A B C
1 JEFF MONDAY $5.00
2 LISA MONDAY $10.00
3 LISA MONDAY $5.00
3 JEFF TUESDAY $15.00

I need a formula in column E and F to calculate how much each person sold on
a certain day. If this is true, and this is true, sum this....

D E F
MONDAY TUESDAY
1 JEFF $5.00 $15.00
2 LISA $15.00 $-

THANK YOU!!!
TMF

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default If then with 2 criteria, then sum

=SUMPRODUCT(--($A$1:$A$4 = $D2),--($B$1:$B$4 = E$1),($C$1:$C$4))
copied accross and down.

--
Kevin Vaughn


"TMF in MN" wrote:

Using a spreadsheet with the following format:
A B C
1 JEFF MONDAY $5.00
2 LISA MONDAY $10.00
3 LISA MONDAY $5.00
3 JEFF TUESDAY $15.00

I need a formula in column E and F to calculate how much each person sold on
a certain day. If this is true, and this is true, sum this....

D E F
MONDAY TUESDAY
1 JEFF $5.00 $15.00
2 LISA $15.00 $-

THANK YOU!!!
TMF

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning Results Based on Two Criteria [email protected] Excel Worksheet Functions 7 October 23rd 05 02:53 PM
Find largest alphanumeric value matching alpha criteria in databas Alison Excel Worksheet Functions 7 August 4th 05 06:59 PM
sorting more than 3 keys Brooke Excel Discussion (Misc queries) 3 June 18th 05 04:52 AM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


All times are GMT +1. The time now is 11:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"