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 / New Users / March 2008

Tip: Looking for answers? Try searching our database.

MATCH and OFFSET with dynamic range - Excel Formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
inarobis@gmail.com - 03 Mar 2008 07:22 GMT
Hello,

I would like to do the following with excel Formula.

these are the information

Sheet 2
A               M
01/12/2001 24
01/06/2002 23
01/12/2002 25
01/06/2003 52
01/12/2003 53

there are already 2 range define in sheet 2 rngDate, rgnValues
How to obtain something like this with Excel formula and not VBA

Sheet1
               Jun      Dec      tot
2003         52         53      105
2002         23         25      48
2001                     24       24

I tried to use Match and Offset (but I have a problem with the
offset)

Any help will be really apreciate :D

Ina
T. Valko - 03 Mar 2008 08:02 GMT
I noticed that all of the dates are either June or December.

Assume on sheet1:

Column headers B1:D1 = Jun, Dec, Tot
Row headers A2:A4 = 2003, 2002, 2001

Enter this formula in B2:

=SUMPRODUCT(--(MONTH(rngDate)=COLUMNS($B2:B2)*6),--(YEAR(rngDate)=$A2),rngValues)

Copy across to C2 then down to row 4.

Enter this formula in D2 and copy down to D4:

=SUM(B2:C2)

Signature

Biff
Microsoft Excel MVP

> Hello,
>
[quoted text clipped - 25 lines]
>
> Ina
inarobis@gmail.com - 03 Mar 2008 08:49 GMT
> I noticed that all of the dates are either June or December.
>
[quoted text clipped - 52 lines]
>
> - Show quoted text -

Hello Thank you It is working perfectly
Only one question if I have monthly data ? can I adapt the formula
and I can use dynamic Range ?
thank you again :D
Ina
T. Valko - 03 Mar 2008 08:57 GMT
If you have monthly data and your column headers are like this:

B1:M1 = Jan, Feb, Mar, Apr .... Dec

Then change the formula to:

=SUMPRODUCT(--(MONTH(rngDate)=COLUMNS($B2:B2)),--(YEAR(rngDate)=$A2),rngValues)

Signature

Biff
Microsoft Excel MVP

On Mar 3, 9:02 am, "T. Valko" <biffinp...@comcast.net> wrote:
> I noticed that all of the dates are either June or December.
>
[quoted text clipped - 52 lines]
>
> - Show quoted text -

Hello Thank you It is working perfectly
Only one question if I have monthly data ? can I adapt the formula
and I can use dynamic Range ?
thank you again :D
Ina
inarobis@gmail.com - 03 Mar 2008 09:01 GMT
> If you have monthly data and your column headers are like this:
>
[quoted text clipped - 77 lines]
>
> - Show quoted text -

Thank you so much :D It is working very well
T. Valko - 03 Mar 2008 19:38 GMT
You're welcome. Thanks for the feedback!

Signature

Biff
Microsoft Excel MVP

On Mar 3, 9:57 am, "T. Valko" <biffinp...@comcast.net> wrote:
> If you have monthly data and your column headers are like this:
>
[quoted text clipped - 76 lines]
>
> - Show quoted text -

Thank you so much :D It is working very well

Rate this thread:






 
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.