#1   Report Post  
ACDenver
 
Posts: n/a
Default SumIF function

I apologize for not making myself clear. I appreciated the response. And
allow me to qualify my original question further. I know I can do a pivot
table and obtain the results, but I am trying to avoid that.

See my example below - the question is how do I do a sumif function within
a summary view when I want to recap hundreds of rows by alpha FERC Codes and
sum associated values within the aging bucket column? I included an excerpt
of 5 records under 4 column headings, and then I show the summary of those
five records below by FERC Code by aging bucket. The countif function worked
when it came to counting the FERC codes, but I am stuck on calculating the
summary values associated to the FERC Code by aging bucket with the sumif
function. This summary section is giving me heartache. Thanks

Detail- Below is an excerpt. But we have hundreds of rows...
FERC Code FERC Current FERC 30 Days FERC 60
TG 10
PG 20
PG 100
SG 300
TG 25
Total 5 10 420 25

This is what I am looking for below as the answer. Can one use the sumif
function to add values by within buckets by a FERC Code?

Count Current FERC 30 FERC 60
TG 2 10 0 25
PG 2 0 120 0
SG 1 0 300 0
Summary 5 10 420 25

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

COUNTIF and SUMIF will do this will do this

=COUNTIF(A2:A100,"TG") gives the count
=SUMIF(A2:A100,"TG", B2:B100) sums the current
etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"ACDenver" wrote in message
...
I apologize for not making myself clear. I appreciated the response. And
allow me to qualify my original question further. I know I can do a

pivot
table and obtain the results, but I am trying to avoid that.

See my example below - the question is how do I do a sumif function

within
a summary view when I want to recap hundreds of rows by alpha FERC Codes

and
sum associated values within the aging bucket column? I included an

excerpt
of 5 records under 4 column headings, and then I show the summary of

those
five records below by FERC Code by aging bucket. The countif function

worked
when it came to counting the FERC codes, but I am stuck on calculating the
summary values associated to the FERC Code by aging bucket with the sumif
function. This summary section is giving me heartache. Thanks

Detail- Below is an excerpt. But we have hundreds of rows...
FERC Code FERC Current FERC 30 Days FERC 60
TG 10
PG 20
PG 100
SG 300
TG 25
Total 5 10 420 25

This is what I am looking for below as the answer. Can one use the sumif
function to add values by within buckets by a FERC Code?

Count Current FERC 30 FERC 60
TG 2 10 0 25
PG 2 0 120 0
SG 1 0 300 0
Summary 5 10 420 25



  #3   Report Post  
Domenic
 
Posts: n/a
Default

Assumptions:

Columns A, B, C, and D contain your source table

First row contains the following labels...

B1: Current

C1: 30 Days

D1: 60 Days

Columns G through K contain your result table

Column G, starting with G2, contains your list of codes, TG, PG, SG

H1:K1 contains the following labels...

H1: Count

I1: Current

J1: 30 Days

K1: 60 Days



Formulas:

H2, copied down:

=COUNTIF($A$2:$A$6,G2)

I2, copied down and across:

=SUMIF($A$2:$A$6,$G2,INDEX($B$2:$D$6,0,MATCH(I$1,$ B$1:$D$1,0)))


Hope this helps!


In article ,
"ACDenver" wrote:

I apologize for not making myself clear. I appreciated the response. And
allow me to qualify my original question further. I know I can do a pivot
table and obtain the results, but I am trying to avoid that.

See my example below - the question is how do I do a sumif function within
a summary view when I want to recap hundreds of rows by alpha FERC Codes and
sum associated values within the aging bucket column? I included an excerpt
of 5 records under 4 column headings, and then I show the summary of those
five records below by FERC Code by aging bucket. The countif function worked
when it came to counting the FERC codes, but I am stuck on calculating the
summary values associated to the FERC Code by aging bucket with the sumif
function. This summary section is giving me heartache. Thanks

Detail- Below is an excerpt. But we have hundreds of rows...
FERC Code FERC Current FERC 30 Days FERC 60
TG 10
PG 20
PG 100
SG 300
TG 25
Total 5 10 420 25

This is what I am looking for below as the answer. Can one use the sumif
function to add values by within buckets by a FERC Code?

Count Current FERC 30 FERC 60
TG 2 10 0 25
PG 2 0 120 0
SG 1 0 300 0
Summary 5 10 420 25

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
How to nest a left function within a sumif function? LisaK Excel Worksheet Functions 2 April 23rd 23 11:46 AM
Can SUMIF function include AND function ShaneS Excel Worksheet Functions 1 May 17th 05 03:24 AM
Dynamic sumif function Jimbola Excel Worksheet Functions 5 May 4th 05 01:10 AM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 11:41 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"