View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Billy Liddel Billy Liddel is offline
external usenet poster
 
Posts: 527
Default sumif with multiple criteria

Hi Mike

I couldn't paste this in one cell so I had to rewrite it. I'll look at it
again. But I'd use the SUMPRODUCT anyway - that was fine

Thanks
Peter

"Mike H" wrote:

Hi,

All the formula I posted work fine, did you edit them?

Mike

"Billy Liddel" wrote:

Mike

I could not get this to work but

=INDIRECT(ADDRESS(MATCH(F1,A1:A6,0),MATCH(G1,A1:E1 ,0)))

is ok

Regards
Peter

"Mike H" wrote:

Hi,

Try this

=INDEX(A1:E6, MATCH("Debbie",A1:A6,0), MATCH("Guy",A1:E1,0))

In practice I'd use cell references for the lookup values

=INDEX(A1:E6, MATCH(F1,A1:A6,0), MATCH(G1,A1:E1,0))

When you change the range remember to change A1:E6 to the FULL table
and A1:A6 - A1:E1 to the FULL column/row

Mike

"Pebbles" wrote:

I have a huge spreadsheet (sample below) and I need to know the value of what
2 people have sold. The problem is that the men are listed along the columns
and the females are in the rows. I'm sure it's simple - I'm just mental
blocking.
The sort of results I'd expect a Debbie and Guy have sold $12,100/George
and Rebecca have sold $3,000.
A B C D E
1 Bob John Guy George
2 Jane $100 $600 $23,000 $2,000
3 Rebecca $200 $5,000 $43,000 $3,000
4 Alison $300 $8,000 $53,000 $400
5 Clair $400 $2,000 $70,000 $5,450
6 Debbie $800 $1,000 $12,100 $8,000

Thanks
--
Pebbles