Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 148
Default Function to Use when compare sums another column

I have and age Field and a Column that contain counts.
If the aging Column contains a number between =0 and <=30 I want it to sum
up the counts that correspond in field B2.

I tried the following and keep getting invalid returns.

=SUM(IF(MATCH("<=30",Sheet2!F:F,0),INDEX(Sheet2!B: B,MATCH("<=30",Sheet2!F:F)),0))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Function to Use when compare sums another column

One way...(I think)...

=sumif(a:a,"="&0,b:b) - sumif(a:a,""&30,b:b)



Heather wrote:

I have and age Field and a Column that contain counts.
If the aging Column contains a number between =0 and <=30 I want it to sum
up the counts that correspond in field B2.

I tried the following and keep getting invalid returns.

=SUM(IF(MATCH("<=30",Sheet2!F:F,0),INDEX(Sheet2!B: B,MATCH("<=30",Sheet2!F:F)),0))


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Function to Use when compare sums another column

Hi,
try

=SUMPRODUCT(--(Sheet2!F1:F100),--(Sheet2!F1:F10<=30))

change range to fit your needs

"Heather" wrote:

I have and age Field and a Column that contain counts.
If the aging Column contains a number between =0 and <=30 I want it to sum
up the counts that correspond in field B2.

I tried the following and keep getting invalid returns.

=SUM(IF(MATCH("<=30",Sheet2!F:F,0),INDEX(Sheet2!B: B,MATCH("<=30",Sheet2!F:F)),0))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
Default Function to Use when compare sums another column

=SUMPRODUCT(--(Sheet2!F1:F1000=0),(--(Sheet2!F1:F1000<=30),
Sheet2!B1:B1000)
You cannot use full column references with SUMPRODUCT except in Excel 2007+
And if you have Exel2007 then you could use
=SUMIFS(Sheet2!B:B,Sheet2!F:F,"=0",Sheet2!F:F,"<= 30")
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Heather" wrote in message
...
I have and age Field and a Column that contain counts.
If the aging Column contains a number between =0 and <=30 I want it to
sum
up the counts that correspond in field B2.

I tried the following and keep getting invalid returns.

=SUM(IF(MATCH("<=30",Sheet2!F:F,0),INDEX(Sheet2!B: B,MATCH("<=30",Sheet2!F:F)),0))


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
add up sums in column m if column c = scott sherri Excel Worksheet Functions 3 December 2nd 08 04:19 AM
=sum(A:A) add to column (B) and new value repeats w/ new sums planecents Excel Worksheet Functions 3 March 2nd 07 05:35 PM
Help With A Formula That Sums Items In A Column Gatsby Excel Discussion (Misc queries) 2 January 25th 07 12:04 AM
How to add previous sums in a column to current sums in a column? TD Excel Worksheet Functions 1 September 30th 06 02:55 PM
Database function that sums? Keensie Excel Discussion (Misc queries) 3 April 25th 06 03:38 PM


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