Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 41
Default SUMPRODUCT problems

SUMPRODUCT(--(LEFT($G$2:$G$150,10)="employment"))
In column G are groups of economic data. In column B are the numbers that
correspond to that group. The problem is that not all of the corresponding
€śemployment€ť cells in column B will have numbers. I need to be able to come
up with only the number of cells in column B that contain numbers.
SUMPRODUCT(--(LEFT($G$2:$G$150,10)="employment")) returns the number 19 for
the 19 times €śemployment€ť is in column G.
The cells in column B that are directly to the left of the €śemployment€ť
cells at this time contain 14 numbers. I need a formula or modify this
formula to be able to return the value of 14.
Thanks for the help

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default SUMPRODUCT problems

mmcap,

Try

=SUMPRODUCT((LEFT($G$2:$G$150,10)="employment")*IS NUMBER(B2:B150))

HTH,
Bernie
MS Excel MVP


"mmcap" wrote in message
...
SUMPRODUCT(--(LEFT($G$2:$G$150,10)="employment"))
In column G are groups of economic data. In column B are the numbers that
correspond to that group. The problem is that not all of the corresponding
"employment" cells in column B will have numbers. I need to be able to come
up with only the number of cells in column B that contain numbers.
SUMPRODUCT(--(LEFT($G$2:$G$150,10)="employment")) returns the number 19 for
the 19 times "employment" is in column G.
The cells in column B that are directly to the left of the "employment"
cells at this time contain 14 numbers. I need a formula or modify this
formula to be able to return the value of 14.
Thanks for the help



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 41
Default SUMPRODUCT problems

works great I just had to add the $ for the range in order for it to work in
both of the ways I sort the data.
Thanks much
Norm

"Bernie Deitrick" wrote:

mmcap,

Try

=SUMPRODUCT((LEFT($G$2:$G$150,10)="employment")*IS NUMBER(B2:B150))

HTH,
Bernie
MS Excel MVP


"mmcap" wrote in message
...
SUMPRODUCT(--(LEFT($G$2:$G$150,10)="employment"))
In column G are groups of economic data. In column B are the numbers that
correspond to that group. The problem is that not all of the corresponding
"employment" cells in column B will have numbers. I need to be able to come
up with only the number of cells in column B that contain numbers.
SUMPRODUCT(--(LEFT($G$2:$G$150,10)="employment")) returns the number 19 for
the 19 times "employment" is in column G.
The cells in column B that are directly to the left of the "employment"
cells at this time contain 14 numbers. I need a formula or modify this
formula to be able to return the value of 14.
Thanks for the help




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
Problems with sumproduct Rob_T Excel Worksheet Functions 1 June 26th 06 11:47 AM
Problems with Sumproduct formulas Zemmm Excel Worksheet Functions 1 December 12th 05 11:09 AM
SUMPRODUCT and format problems (2) Chrism Excel Discussion (Misc queries) 2 April 5th 05 06:38 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 01:29 AM.

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"