Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Johnny Meredith
 
Posts: n/a
Default Can this be done with Domain Functions?

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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Can this be done with Domain Functions?

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" wrote in message
ups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Can this be done with Domain Functions?

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
---


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB
 
Posts: n/a
Default Can this be done with Domain Functions?

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


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Johnny Meredith
 
Posts: n/a
Default Can this be done with Domain Functions?

JMB,

Works great. Thanks for the help.

Johnny



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
Can I get Excel to determine the line curve formula without graph. Cadelima Excel Discussion (Misc queries) 8 December 20th 05 09:57 PM
User-defined functions created in Excel 2000 fail in Excel 2003 goodguy Excel Discussion (Misc queries) 1 October 3rd 05 07:04 PM
Database functions should use criteria in formula, as 1-2-3 does 123user Excel Worksheet Functions 8 September 29th 05 08:57 PM
Visible rows and functions that work tracy Excel Worksheet Functions 2 August 19th 05 05:25 AM
PASTE DOWN FUNCTIONS jackle Excel Worksheet Functions 0 May 25th 05 02:10 PM


All times are GMT +1. The time now is 12:07 AM.

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"