SUMIF?

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Thanks Frank that's great!

Is there a way Instead of typing the multiple criteria
into the formula, can I have them typed into a cell
already and just reference the cell?

If so what format would I need it to be?
 
Jeff,

Put the values in L1:N1 and use

=SUMPRODUCT((C1:C200=L1:N1)*(D1:D200))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
L1:N1? does this mean put them in a selection of reference
cells, but one in each?
 
L1:N1? does this mean put them in a selection of reference
cells, but one in each?
 
Hi Frank, this is the exact formula.But it doesn't work
for some reason. shows #N/A.

=SUMPRODUCT((B5:B63=P46:P48)*(C5:C63))

These are the criteria in cells P46:P48.

1
8A
4/1
 
Hi
as Bob wrote: You have to put this in one ROW (e.g. P46:R46)
Or you may use the following array formula (entered with
CTRL+SHIFT+ENTER):
=SUMPRODUCT((B5:B63=TRANSPOSE(P46:P48))*(C5:C63))
 
Jeff,

This formula demands the comparison data to be in a row, so it should be
P46:R46. IF you must use P46:P48, you need to transpose it in the formula,
but this will need an array formula.

So use

=SUMPRODUCT((B5:B63=P46:R46))*(C5:C63))

as a normal formula, or

=SUMPRODUCT((B5:B63=TRANSPOSE(P46:P48))*(C5:C63))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top