MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Feb 18th, 2002, 11:04 PM   #1
Cindy
New Member
 
Join Date: Feb 2002
Posts: 16
Default

I have a csv file that dumps from our financial system. The information is sorted by hierarchy and under each hierarchy code a cost code. The cost code belongs to a particular expense group. I need to be able to determine the total for each expense group, by hierarchy for a 12 month period.

Assume my data is as follows:

Account Code Expense Group Amount
HIERONE
1234567890 E3 100
9876543219 E1 200
2587945632 E2 300
1258795463 E1 400
1258796532 E2 500
1254899720 E3 600
1258786931 E4 700

HIERTWO
1231657986 E4 100
1236498710 E3 200
1235789654 E2 300
1235649874 E3 400
1236798745 E3 500


So for Hierarchy one (HIERONE), I want to be able to pull out a total of $600 for expense group E1, $800 for E2 and so on. And then do the same for the next hierarchy, and the next.

Help?
Cindy is offline   Reply With Quote
Old Feb 19th, 2002, 07:16 AM   #2
Dan Aragon
MrExcel MVP
 
Join Date: Feb 2002
Location: Minnesota
Posts: 92
Default

It makes a big difference in how your data is arranged. I'm assuming that since this is being imported from a CSV file that all of your data basically goes straight down 3 columns. Is each hierarchy separated by a blank row? How many hierarchies are there? Always the same number or does it vary? How about Expense Groups?
Dan Aragon is offline   Reply With Quote
Old Feb 19th, 2002, 02:06 PM   #3
anno
Board Regular
 
Join Date: Feb 2002
Posts: 202
Default

dan
see cindy's previous post for more info:
http://www.mrexcel.com/board/viewtop...=139&forum=2&7
anno is offline   Reply With Quote
Old Feb 19th, 2002, 02:27 PM   #4
Cindy
New Member
 
Join Date: Feb 2002
Posts: 16
Default

Quote:
On 2002-02-19 06:16, Dan Aragon wrote:
It makes a big difference in how your data is arranged. I'm assuming that since this is being imported from a CSV file that all of your data basically goes straight down 3 columns. Is each hierarchy separated by a blank row? How many hierarchies are there? Always the same number or does it vary? How about Expense Groups?
OK. The data is arranged in 3 columns. No, each hierarchy is not separated by a blank row. And no, there is not always the same number. Expense groups are limited to 7, but there may be many entries to each expense gruop per hierarchy. I think we have about 25 or so hierarchies. One thing I did think of is that if I could substitute the account codes for the hierarchy name (ie; do a copy function until the next hierarchy line), then I could concatenate the hierarchy name with the expense group, and sort that way. Any idea how to do this automatically? And how to actually get a subtotal per expense group per hierarchy?
Cindy is offline   Reply With Quote
Old Feb 19th, 2002, 04:10 PM   #5
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

Hi Cindy --

Without seeing the SS its a tough one but i have conserns here. Finance love it i would my field..

Few questions ----

Why CSV?
Your saying your pulling in data how? and from where.
I guess Unix ScO5 or 5.5 and via Exel Query??? So i move on to ODBC corrcect if so the agro i say is the Kopen3Live data ODBC transfer link, needs some oiling. ICT Dept will have this covered or should, i do this ever day and when you get GOOD data (OK i got shot for saying that last time GOOD data is the data you want, not data you need to work on or rearrange) you can doa s you please .

If could have read this totally rong but.. your pulling in data you need to convert - i would only ever pull in clean data GOOD DATA - just my way i have Scripts that do this for me as i really cant be bothered ripping live data (again so i dont get shot live data in up to the minute dat - not 5 minutes old data - things change FAST in finance) so its easy to refresh and let scripts take oper.

HTH

Rdgs
==========
Jack

PS if i can help more please let me no |||| or post me a private message and ill reply soon as i can !

Jack in the UK is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT -4. The time now is 08:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes