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 / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

Summarizing Data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
krc547 - 31 Mar 2008 18:34 GMT
Is there a way I can have a macro look at a worksheet and look down a certain
column, if the number in that column is x then return the value of a certain
column.
For example:

Summary worksheet macro look at jan 08 worksheet. Then go down column "C"
and if they is a 0,1,2,3,4 then grab the amount in column "G" and continue to
add the amounts together when at the end of the worksheet place the total in
the summary worksheet Column "C" cell 5.
Pete_UK - 31 Mar 2008 19:13 GMT
Try this formula (NOT a macro) in C5 of your summary sheet:

=SUMPRODUCT(('Jan 08'!C1:C1000>=0)*('Jan 08'!C1:C1000<=5)*('Jan 08'!
G1:G1000))

I've assumed 1000 rows - adjust to suit, but you can't use complete
column references prior to XL2007.

Hope this helps.

Pete

> Is there a way I can have a macro look at a worksheet and look down a certain
> column, if the number in that column is x then return the value of a certain
[quoted text clipped - 5 lines]
> add the amounts together when at the end of the worksheet place the total in
> the summary worksheet Column "C" cell 5.
 
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.