#1   Report Post  
Jason
 
Posts: n/a
Default sumif Question

I have two column of data like:

A B
A45 $345.68
A35 $23.96
G38 $457.98
A13 $670.01
G68 $43.82

How may I sum the Column B data only if the corresponding column A data is
started by G?

Thanks.

Jason
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=SUMPRODUCT(--(LEFT(A1:A5)="G"),B1:B5)

Hope this helps!

In article ,
"Jason" wrote:

I have two column of data like:

A B
A45 $345.68
A35 $23.96
G38 $457.98
A13 $670.01
G68 $43.82

How may I sum the Column B data only if the corresponding column A data is
started by G?

Thanks.

Jason

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

=SUMPRODUCT(--(LEFT(A1:A100,1)="G"),B1:B100)

--

HTH

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


"Jason" wrote in message
...
I have two column of data like:

A B
A45 $345.68
A35 $23.96
G38 $457.98
A13 $670.01
G68 $43.82

How may I sum the Column B data only if the corresponding column A data is
started by G?

Thanks.

Jason



  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

=SUMIF(A:A,"G*",B:B)

HTH
Jason
Atlanta, GA

-----Original Message-----
I have two column of data like:

A B
A45 $345.68
A35 $23.96
G38 $457.98
A13 $670.01
G68 $43.82

How may I sum the Column B data only if the

corresponding column A data is
started by G?

Thanks.

Jason
.

  #5   Report Post  
Jason
 
Posts: n/a
Default

Works beautifully. Thanks a lot.

Jason

"Jason Morin" wrote:

=SUMIF(A:A,"G*",B:B)

HTH
Jason
Atlanta, GA

-----Original Message-----
I have two column of data like:

A B
A45 $345.68
A35 $23.96
G38 $457.98
A13 $670.01
G68 $43.82

How may I sum the Column B data only if the

corresponding column A data is
started by G?

Thanks.

Jason
.


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 use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
SUMIF Not vanjohnson Excel Discussion (Misc queries) 1 March 4th 05 08:42 PM
SUMIF question CarlosAntenna Excel Worksheet Functions 2 February 23rd 05 06:38 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
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


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