Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / March 2008

Tip: Looking for answers? Try searching our database.

Two questions-SUMPRODUCT & IF something

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J.Mart - 13 Mar 2008 16:47 GMT
Hi,

I am trying to use a sumproduct function to return how many M&A deals were
over a billion dollars in a given year. I've been trying
=SUMPRODUCT(($A$18:$A$3295=$C4)*($D$18:$D$3295>=1000))
C4-represents a year. The sheet is set up as follows:
Output
             No. of deals 1billion plus      
     2002
     2003

DATA
Col.A        Col.D
YEAR        Value in $Millions

Second question: If I have a list of dates m/d/yy how can I write an
equation that will just return the month and year?

Thanks!
Pete_UK - 13 Mar 2008 17:32 GMT
I'm not sure what your first question is - does the SP formula not
work, then? Check the formatting of column A (dates?) and column D if
not.

For your second question, you can just reformat the cells using a
custom format of mm yyyy, or mmm yy, or mmmm yy. (3 m's will give the
abbreviated name, 4 m's will give the full name)

Alternatively, you could put:

=A1

in an adjacent cell, format this as mm yyyy (or one of the others),
and copy down.

Another alternative still is to use this formula:

=TEXT(A1,"mm yyyy")

and copy down, although this will return a text result.

Hope this helps.

Pete

> Hi,
>
[quoted text clipped - 15 lines]
>
> Thanks!
J.Mart - 14 Mar 2008 20:37 GMT
Thanks!

> I'm not sure what your first question is - does the SP formula not
> work, then? Check the formatting of column A (dates?) and column D if
[quoted text clipped - 40 lines]
> >
> > Thanks!
Pete_UK - 15 Mar 2008 00:49 GMT
You're welcome.

Pete

> Thanks!
>
[quoted text clipped - 44 lines]
>
> - Show quoted text -
Dave Peterson - 13 Mar 2008 17:46 GMT
I'd use:
=SUMPRODUCT(--(text($A$18:$A$3295,"yyyymm")=text($C4,"yyyymm")),
           --($D$18:$D$3295>=1000))

Where C4 contains a real date, too.

> Hi,
>
[quoted text clipped - 15 lines]
>
> Thanks!

Signature

Dave Peterson

J.Mart - 14 Mar 2008 20:37 GMT
Dave- thank you. This was helpful.

> I'd use:
> =SUMPRODUCT(--(text($A$18:$A$3295,"yyyymm")=text($C4,"yyyymm")),
[quoted text clipped - 21 lines]
> >
> > Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.