PC Review


Reply
Thread Tools Rate Thread

Can this be done with Domain Functions?

 
 
Johnny Meredith
Guest
Posts: n/a
 
      27th Feb 2006
Hi all,

I have a workbook with three tabs:

Report
Data
Groupings

Report has the following info:

Group Amount
A <need formulas here>
B
C

Data has a list of accounts and balances. Groupings has a list of all
possible accounts and what group they below to (A,B,C,etc.)

My question is: on the report tab, can I use a domain function to sum
all amounts from the Data tab into their proper groupings? The groups
will have to be looked up on the Groupings tab by account. This would
be an elegant solution if possible. Otherwise, I'm going to have to
duplicate data (i.e. - do another report with the accounts, groupings,
and balance and use plain vanilla sumifs) or do something in VBA to
generate the Report tab.

Thanks in advance,
Johnny

 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      28th Feb 2006
One try ..

In sheet: Report,

Put in B2, copy down:
=SUMPRODUCT((Groupings!$B$2:$B$100=A2)
*(Data!$A$2:$A$100<>""),Data!$B$2:$B$100)

Adapt the ranges to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Johnny Meredith" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
> I have a workbook with three tabs:
>
> Report
> Data
> Groupings
>
> Report has the following info:
>
> Group Amount
> A <need formulas here>
> B
> C
>
> Data has a list of accounts and balances. Groupings has a list of all
> possible accounts and what group they below to (A,B,C,etc.)
>
> My question is: on the report tab, can I use a domain function to sum
> all amounts from the Data tab into their proper groupings? The groups
> will have to be looked up on the Groupings tab by account. This would
> be an elegant solution if possible. Otherwise, I'm going to have to
> duplicate data (i.e. - do another report with the accounts, groupings,
> and balance and use plain vanilla sumifs) or do something in VBA to
> generate the Report tab.
>
> Thanks in advance,
> Johnny
>



 
Reply With Quote
 
=?Utf-8?B?Sk1C?=
Guest
Posts: n/a
 
      28th Feb 2006
Another way - I'm assuming that your groupings worksheet contains all
possible account numbers, the data worksheet contains a subset of the account
numbers found in Groupings (ie - two different sized, which would defeat
normal array multiplication).

I'm assuming the groupings you are trying to sum begin in cell A1 of Report,
Data A1:A7 lists account numbers, Data B1:B7 lists account amounts, Groupings
A1:A10 lists account numbers, and Groupings B1:B10 list account group.

In cell B1 of Data enter:

=SUM(IF(ISNA(MATCH(Data!$A$1:$A$7,IF(Groupings!$B$1:$B$10=A1,Groupings!$A$1:$A$10,""),0)),0,Data!$B$1:$B$7))

and copy down. Note this is an array formula, you will need to enter with
Control+Shift+Enter.

Change ranges as necessary.

"Johnny Meredith" wrote:

> Hi all,
>
> I have a workbook with three tabs:
>
> Report
> Data
> Groupings
>
> Report has the following info:
>
> Group Amount
> A <need formulas here>
> B
> C
>
> Data has a list of accounts and balances. Groupings has a list of all
> possible accounts and what group they below to (A,B,C,etc.)
>
> My question is: on the report tab, can I use a domain function to sum
> all amounts from the Data tab into their proper groupings? The groups
> will have to be looked up on the Groupings tab by account. This would
> be an elegant solution if possible. Otherwise, I'm going to have to
> duplicate data (i.e. - do another report with the accounts, groupings,
> and balance and use plain vanilla sumifs) or do something in VBA to
> generate the Report tab.
>
> Thanks in advance,
> Johnny
>
>

 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      28th Feb 2006
Sorry, pl dismiss the earlier suggestion, which doesn't work if there's
duplicate account listings in Data (likely the case)

Go with JMB's offering ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


 
Reply With Quote
 
Johnny Meredith
Guest
Posts: n/a
 
      28th Feb 2006
JMB,

Works great. Thanks for the help.

Johnny

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternative to domain functions? BruceM Microsoft Access Queries 2 18th Apr 2008 07:56 PM
Domain Aggregate Functions =?Utf-8?B?R3Jhc3N5MDM=?= Microsoft Access VBA Modules 4 11th Aug 2007 12:35 AM
Domain Aggregate Functions David Microsoft Access 3 7th Dec 2006 09:15 PM
domain functions not working with query =?Utf-8?B?cnB1cm9za3k=?= Microsoft Access Queries 1 8th Sep 2006 08:30 PM
Domain Aggregate Functions =?Utf-8?B?RGF2aWQgTSBD?= Microsoft Access 11 23rd Aug 2006 12:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:57 PM.