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 Mar 20th, 2002, 01:49 AM   #1
ashie
New Member
 
Join Date: Mar 2002
Posts: 18
Default

I am trying to create a table using lookup(the lookup table has 20 columns and in excess of 4000 rows)
I have a lot of zero's or blanks being returned to me which creates a table just as big as the lookup table. Have tryed a pivot table then a lookup but there are too many columns for it to cope with.
Help - am no good at macro's!!
ashie is offline   Reply With Quote
Old Mar 20th, 2002, 02:27 AM   #2
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

Hi ashie


Try the Database functions. Excels help has some very good examples on these.


I also have some examples here:

http://www.ozgrid.com/download/default.htm

Under: DFunctionsWithValidation.zip



Dave Hawley is offline   Reply With Quote
Old Mar 23rd, 2002, 02:09 PM   #3
ashie
New Member
 
Join Date: Mar 2002
Posts: 18
Default

thankyou for reply - DGET does work although in my case multiple values in my column meet the criteria - how do I get round this - have tried but to no avail

Thanks

Ashie UK
ashie is offline   Reply With Quote
Old Mar 23rd, 2002, 03:38 PM   #4
Juan Pablo González
MrExcel MVP
 
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
Default

Why isn't it working ? I mean, what is it actually returning ? can you post some example data ?
__________________
Regards,

Juan Pablo González
http://www.juanpg.com
Juan Pablo González is offline   Reply With Quote
Old Mar 23rd, 2002, 04:06 PM   #5
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-03-23 13:09, ashie wrote:
thankyou for reply - DGET does work although in my case multiple values in my column meet the criteria - how do I get round this - have tried but to no avail

Thanks

Ashie UK
Hi Ashie:
Use of Dfunctions will naturally return a single value. What I understand is that you would like to consolidate your table by omitting 0 values and blanks -- if this is the case then you ought to try DATA|FILTER|Advanced_Filter ... use criteria to filter values >0
here is a small example

table with unfiltered data (contains 0s and blanks)
colA colB colC colD
0001 1110 09.15 10156.50
0002 1113 24.45 27212.85
0003 1110 08.95 9934.50
0004 2134 02.95 6295.30
0005 5412 05.45 29495.40
0006 0000 01.45 000.00
0007 0012 01.29 015.48
0008 0004 000.00

now the same table with criteria to show only thhose rows that have a value>0 in columns B, C, and D
colA colB colC colD
0001 1110 09.15 10156.50
0002 1113 24.45 27212.85
0003 1110 08.95 9934.50
0004 2134 02.95 6295.30
0005 5412 05.45 29495.40
0007 0012 01.29 015.48

HTH
Please post if it works for you ... otherwise explain a little further and let us take it from there!

__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand is offline   Reply With Quote
Old Mar 23rd, 2002, 08:20 PM   #6
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

Hi ashie


I feel you are over contiplating a relatively simple issue.

If you are only wanting a table of your datbase without all the zeros and empty text there should be no reason why a Pivot Table could not handle this. By default a Pivot Table may well give you too much informaton and hence tell you that all the data cannot be shown. All you should need to do is place most of your headings in the PageField then as drag down one at a time and hide any info you do not want, eg Subtotals, Counts etc. Then go into Options for the Pivot Table and tell it to not show zeros and/or blanks.




Dave Hawley is offline   Reply With Quote
Old Mar 24th, 2002, 02:33 PM   #7
ashie
New Member
 
Join Date: Mar 2002
Posts: 18
Default

Basically I have been given a spreadsheet that is 45 columns * 2500 rows for example (I do not own this spreadsheet so cannot change it!!)

Column A = Purchase Order Nos
Column B = Supplier Name
Column C = PO Amount
Column D = PO Date
Column E = Spreads the PO Amount over the months it relates to - could be over 36 months (hence the amount of columns)
etc.....


My problem is that there is multiple suppliers, PO numbers etc.

- I can do a sumif on these but what I need is an automatic table that for example lists a supplier and then lists all PO's and invoices with relating amounts on an individual basis.

- A pivot table doesn't work because there are too many columns - I can't cut this down because all the data is relevant.

Thankyou for taking the time to look at this - it is driving me crazy. I know it should be and is simple....

Ashie UK
ashie is offline   Reply With Quote
Old Mar 24th, 2002, 02:39 PM   #8
Jay Petrulis
MrExcel MVP
 
Jay Petrulis's Avatar
 
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
Default

Quote:
On 2002-03-24 13:33, ashie wrote:
Basically I have been given a spreadsheet that is 45 columns * 2500 rows for example (I do not own this spreadsheet so cannot change it!!)

Column A = Purchase Order Nos
Column B = Supplier Name
Column C = PO Amount
Column D = PO Date
Column E = Spreads the PO Amount over the months it relates to - could be over 36 months (hence the amount of columns)
etc.....


My problem is that there is multiple suppliers, PO numbers etc.

- I can do a sumif on these but what I need is an automatic table that for example lists a supplier and then lists all PO's and invoices with relating amounts on an individual basis.

- A pivot table doesn't work because there are too many columns - I can't cut this down because all the data is relevant.

Thankyou for taking the time to look at this - it is driving me crazy. I know it should be and is simple....

Ashie UK
Hi Ashie UK,

Have you tried using sorting accouring to supplier and possibly date, and then using subtotals?

It looks to mee that Data>Subtotals would work on the sorted data.

Regards,
Jay
Jay Petrulis 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 02:31 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