ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumif + right question (https://www.excelbanter.com/excel-worksheet-functions/239806-sumif-right-question.html)

Chris

sumif + right question
 
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

T. Valko

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





All times are GMT +1. The time now is 09:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com