View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default sumif + right question

Try this:

=SUMPRODUCT((RIGHT(B1:G1,4)="SR10")*B2:G4)

--
Biff
Microsoft Excel MVP


"Chris" wrote in message
...
Hi.

I am trying to write a formula that will sum numbers across rows
containing
the last 4 characters of a cell.

NPSR10 NRSR10 NJSR10 NCSR10 NJBI90 NRBI90
Salaries 0 16.32 0 0 0 71.01
Overtime 0 0 0 0 0 0
Benefits 0.04 7.98 0.05 0 0 7.08

If I want to add all the columns containing "SR10", how do I do this?
--

Thanks in advance.

Chris