Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Help with an Array

One more thing to worry about if you use something like this (38930) to
represent a date. You may not get the same date if you have
tools|options|calculation tab|1904 date system checked.

But the other dates could be off, too. (I just find that (38930) hard to
use/understand.)

Ted McCastlain wrote:

Sweet the first formula worked like a champ.

It has been a long week. I probably did put the formula in the same
range. Jeesh!

You would not believe the way the workbook was initially set up; it
stretches sideways for miles with archane references to date. Rather
than have to re-do it entirely, I am going to take some of the serial
date values that are already there and use those.

When I have more time, I am going to re-do this; for that I am saving
your formulas.

Thanks for all of the help!

Dave Peterson wrote:
Removing the 06 from the formula didn't affect the circular reference. I'm
betting that you put the formula in a cell in one of those ranges that were used
within the formula.

Maybe:

=SUMPRODUCT(($G$4:$G$5000="Consulting")
*($T$4:$T$5000=38930)*($S$4:$S$5000<=38960)
*($D$4:$D$5000="Proposal"))

Watch your ranges (I read your initial post and your ranges weren't the same
size).

But if I inherited this from you, I would find it difficult to figure out.

=SUMPRODUCT(($G$4:$G$5000="Consulting")
*($T$4:$T$5000=date(2006,8,1))*($S$4:$S$5000<=dat e(2006,8,31))
*($D$4:$D$5000="Proposal"))

would be easier for me to understand.

But as long as I'm looking at a complete month, I'd use a variation of
DaddyLongLeg's:

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),
--(TEXT($S$4:$S$5000,"yyyymm")="200608"),
--($D$4:$D$5000="Proposal"))

That seems the easiest for me to understand.


Ted McCastlain wrote:

Update:

I got rid of the circular reference by removing "06" from the array and
from the cell. The problem is that I will be referencing against the
serial dates.

Is there a way to incorporate the date checking using the serial dates
of a month? Instead of using the (TEXT(..."mmm yy"..) is possible to
use something like ($T$4:$T$5000=38930)*($S$4:$S$5000<=38960) I am
just not sure how to incorportate it into the formula from earlier...

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),--(TEXT($S$4:$S$5000,"mmm
yy")="Sep"),--($D$4:$D$5000="Proposal"))
Ted McCastlain wrote:
Thanks for the help but two things:

When using the formula, Excel keeps say it is a circular reference.

Secondly, I inherited this workbook and do not have the time to change
it to a pivot table.

T


Dave Peterson wrote:
An unfortunate line break:

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),
--(TEXT($S$4:$S$5000,"mmm yy")="Sep 06"),
--($D$4:$D$5000="Proposal"))



daddylonglegs wrote:

Hi Ted

for this sort of counting with multiple conditions SUMPRODUCT is probably
the best option. Assuming your dates are in column S try this

=SUMPRODUCT(--($G$4:$G$5000="Consulting"),--(TEXT($S$4:$S$5000,"mmm
yy")="Sep 06"),--($D$4:$D$5000="Proposal"))

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
Display an array of references andy62 Excel Worksheet Functions 1 July 6th 06 03:36 AM
Pass an array to Rank Biff Excel Worksheet Functions 12 June 29th 05 04:15 PM
Where is the bug in my array? Gail Gurman Excel Discussion (Misc queries) 1 January 25th 05 12:36 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 09:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"