Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default sum, not count money column in between date columns

I recently got some help on counting the number of rows with data between
certain dates. Now I need to sum up a dollar amount in rows between certain
dates. As of now, I have

=SUM(IF(AND(M49<=All!H2:H5000,N49=All!H2:H5000),A ll!F2:F500,"0"))

where m49 and n49 are the range of the dates, H is the date column in the
worksheet and f is the money column in the worksheet. I also tried this with
a sumif function which didn't work.

and while I'm here, how would I output ideally the names of people donating
more than $100,000 or at least the number of people, again, within certain
dates

=SUMPRODUCT(--(All!F2:F5000="100000"),--(M49<=All!H2:H5000),--(N49=All!H2:H5000))

Thanks
-Benjamin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default sum, not count money column in between date columns

That formula should work okay if the data is good. Did you array enter it
(Ctrl-Shift-Enter)? What did you get?

--

HTH

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


"benjo4u" wrote in message
...
I recently got some help on counting the number of rows with data between
certain dates. Now I need to sum up a dollar amount in rows between

certain
dates. As of now, I have

=SUM(IF(AND(M49<=All!H2:H5000,N49=All!H2:H5000),A ll!F2:F500,"0"))

where m49 and n49 are the range of the dates, H is the date column in the
worksheet and f is the money column in the worksheet. I also tried this

with
a sumif function which didn't work.

and while I'm here, how would I output ideally the names of people

donating
more than $100,000 or at least the number of people, again, within certain
dates


=SUMPRODUCT(--(All!F2:F5000="100000"),--(M49<=All!H2:H5000),--(N49=All!H2:
H5000))

Thanks
-Benjamin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default sum, not count money column in between date columns

I did that, and the few places where there were values went to 0. Any ideas?
It looks good to me, but I can't figure it out. Also, any help on
outputting names when the amount is greater than $100,000?

Thanks

-Benjamin

"Bob Phillips" wrote:

That formula should work okay if the data is good. Did you array enter it
(Ctrl-Shift-Enter)? What did you get?

--

HTH

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


"benjo4u" wrote in message
...
I recently got some help on counting the number of rows with data between
certain dates. Now I need to sum up a dollar amount in rows between

certain
dates. As of now, I have

=SUM(IF(AND(M49<=All!H2:H5000,N49=All!H2:H5000),A ll!F2:F500,"0"))

where m49 and n49 are the range of the dates, H is the date column in the
worksheet and f is the money column in the worksheet. I also tried this

with
a sumif function which didn't work.

and while I'm here, how would I output ideally the names of people

donating
more than $100,000 or at least the number of people, again, within certain
dates


=SUMPRODUCT(--(All!F2:F5000="100000"),--(M49<=All!H2:H5000),--(N49=All!H2:
H5000))

Thanks
-Benjamin




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default sum, not count money column in between date columns

I browsed the boards and came up with the following which worked

=SUMPRODUCT((M49<=All!H2:H4998)*(N49=All!H2:H4998 )*All!D2:D4998)

m and n are bookend dates to compare to h and d is the amount.

Thanks
-Benjamin

"benjo4u" wrote:

I did that, and the few places where there were values went to 0. Any ideas?
It looks good to me, but I can't figure it out. Also, any help on
outputting names when the amount is greater than $100,000?

Thanks

-Benjamin

"Bob Phillips" wrote:

That formula should work okay if the data is good. Did you array enter it
(Ctrl-Shift-Enter)? What did you get?

--

HTH

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


"benjo4u" wrote in message
...
I recently got some help on counting the number of rows with data between
certain dates. Now I need to sum up a dollar amount in rows between

certain
dates. As of now, I have

=SUM(IF(AND(M49<=All!H2:H5000,N49=All!H2:H5000),A ll!F2:F500,"0"))

where m49 and n49 are the range of the dates, H is the date column in the
worksheet and f is the money column in the worksheet. I also tried this

with
a sumif function which didn't work.

and while I'm here, how would I output ideally the names of people

donating
more than $100,000 or at least the number of people, again, within certain
dates


=SUMPRODUCT(--(All!F2:F5000="100000"),--(M49<=All!H2:H5000),--(N49=All!H2:
H5000))

Thanks
-Benjamin




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
Count Unique Values in 1 Column based on Date Range in another Column Brian Excel Worksheet Functions 14 May 17th 09 02:58 PM
count unique in one column based on two other columns casey Excel Worksheet Functions 4 November 21st 08 11:21 PM
Count date in 2 column Jason Au Yeung[_2_] Excel Worksheet Functions 3 November 22nd 07 08:02 AM
how to count 2 date columns conditions. Sumeth Excel Discussion (Misc queries) 5 September 28th 07 10:20 AM
Only count columns if the column next to it is not blank glotgering Excel Discussion (Misc queries) 2 March 30th 06 09:51 PM


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