#1   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Sum Left to Right

Excel2003 ... I have 60 Cols ... The 1st Col & every other Col contain a Code
(S, I, L, V, E, R or NQ) or are Blank ... The 2nd Col & every other Col
contain a "value" or are Blank ... ie:

R | 3 | S | 1 | NQ | 2 | '' | 3 | " | " | S | 4 | E | 6 | S | 3 | etc for 60
Cols

The values are associated with the Code to their Left (ie: R | 3)

To the Right (& 1 row above) I would like to place the Codes (S, I, L, V, E,
R or NQ) in Seperate Cols ... Then write a Formula under "S" & adjacent to
these each of these rows that would Sum the values associated with "S" ... In
the example above ... this would be the "1", "4" & the "3" ... The value I
need returned would be "8". AND, I wish to do this for each Code ... Thanks
.... Kha


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum Left to Right

Based on your sample being in the range A1:P1

This will sum all "S's":

=SUMPRODUCT(--(A1:O1="s"),B1:P1)

Result = 8

Biff

"Ken" wrote in message
...
Excel2003 ... I have 60 Cols ... The 1st Col & every other Col contain a
Code
(S, I, L, V, E, R or NQ) or are Blank ... The 2nd Col & every other Col
contain a "value" or are Blank ... ie:

R | 3 | S | 1 | NQ | 2 | '' | 3 | " | " | S | 4 | E | 6 | S | 3 | etc for
60
Cols

The values are associated with the Code to their Left (ie: R | 3)

To the Right (& 1 row above) I would like to place the Codes (S, I, L, V,
E,
R or NQ) in Seperate Cols ... Then write a Formula under "S" & adjacent to
these each of these rows that would Sum the values associated with "S" ...
In
the example above ... this would be the "1", "4" & the "3" ... The value
I
need returned would be "8". AND, I wish to do this for each Code ...
Thanks
... Kha




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sum Left to Right

Another one:

=SUMIF(A1:O1,"S",B1:P1)



Ken wrote:

Excel2003 ... I have 60 Cols ... The 1st Col & every other Col contain a Code
(S, I, L, V, E, R or NQ) or are Blank ... The 2nd Col & every other Col
contain a "value" or are Blank ... ie:

R | 3 | S | 1 | NQ | 2 | '' | 3 | " | " | S | 4 | E | 6 | S | 3 | etc for 60
Cols

The values are associated with the Code to their Left (ie: R | 3)

To the Right (& 1 row above) I would like to place the Codes (S, I, L, V, E,
R or NQ) in Seperate Cols ... Then write a Formula under "S" & adjacent to
these each of these rows that would Sum the values associated with "S" ... In
the example above ... this would be the "1", "4" & the "3" ... The value I
need returned would be "8". AND, I wish to do this for each Code ... Thanks
... Kha


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Sum Left to Right

I tried both "SUMIF" & "SUMPRODUCT" before posting & they both failed ... BUT
this because I used the same "Range" both before & after the "Criteria" ...

(A1:P1,"S",A1:P1) ... RRR

Amazing what a little tweak to the "Ranges" will do ... I am now off &
running.

Thank you ... Kha

"Dave Peterson" wrote:

Another one:

=SUMIF(A1:O1,"S",B1:P1)



Ken wrote:

Excel2003 ... I have 60 Cols ... The 1st Col & every other Col contain a Code
(S, I, L, V, E, R or NQ) or are Blank ... The 2nd Col & every other Col
contain a "value" or are Blank ... ie:

R | 3 | S | 1 | NQ | 2 | '' | 3 | " | " | S | 4 | E | 6 | S | 3 | etc for 60
Cols

The values are associated with the Code to their Left (ie: R | 3)

To the Right (& 1 row above) I would like to place the Codes (S, I, L, V, E,
R or NQ) in Seperate Cols ... Then write a Formula under "S" & adjacent to
these each of these rows that would Sum the values associated with "S" ... In
the example above ... this would be the "1", "4" & the "3" ... The value I
need returned would be "8". AND, I wish to do this for each Code ... Thanks
... Kha


--

Dave Peterson

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
Left and Right Function JG Excel Worksheet Functions 7 December 28th 06 07:31 PM
Column labels run right to left, not left to right tmassey Excel Discussion (Misc queries) 1 November 10th 06 11:03 AM
Excel should calculate exponentials properly (right to left) expatrie Excel Worksheet Functions 5 April 26th 06 08:34 AM
How do I sum numbers in rolling format? (4 qtrs=4 cells to left) Deb Excel Discussion (Misc queries) 2 April 19th 06 04:46 PM
Working days left in the month compared to previous months qwopzxnm Excel Worksheet Functions 8 October 24th 05 08:00 PM


All times are GMT +1. The time now is 11:39 PM.

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

About Us

"It's about Microsoft Excel"