Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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



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
sumif question lacy Excel Discussion (Misc queries) 4 June 15th 09 07:17 PM
SumIf Question Tom Excel Worksheet Functions 3 June 9th 08 11:13 PM
SUMIF Question juliejg1 Excel Worksheet Functions 1 January 23rd 08 02:48 AM
Sumif question David Bradford Excel Discussion (Misc queries) 5 October 6th 06 03:16 PM
SUMIF question alice Excel Discussion (Misc queries) 2 November 24th 05 02:55 PM


All times are GMT +1. The time now is 03:40 PM.

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

About Us

"It's about Microsoft Excel"