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 Apr 26th, 2002, 07:34 PM   #1
saurabh_sharma
New Member
 
Join Date: Apr 2002
Posts: 10
Default

how can we look up values by lookup function if the data apoints are alongside in 3 diff columns- one after the other. Can we look up a no. of ids against a series of dates in the adjacent columns and their performance metrics in teh following columns.. an advanced for of step by step column filtering ?
saurabh_sharma is offline   Reply With Quote
Old Apr 26th, 2002, 11:42 PM   #2
Jay Petrulis
MrExcel MVP
 
Jay Petrulis's Avatar
 
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
Default

It is certainly possible. Depending on your data, either SUMPRODUCT, INDEX/MATCH, The Deatabase functions, or VBA seem to be likely candidates.

Please provide more details to get a specific response.

Bye,
Jay
Jay Petrulis is offline   Reply With Quote
Old Apr 27th, 2002, 07:22 AM   #3
saurabh_sharma
New Member
 
Join Date: Apr 2002
Posts: 10
Default

Thanks for the help.

I am facing an issue with the file below.
I need to draw a graph for GCVB ids for the diff. Dates for the diff parameters. I have tried using the pivot table but as the data is to be increased everyday so possibly a v lookup would help.
Pls. advise and help wit this…
calls contacts
4/25/02 GCVBMVT 10554 9497
4/25/02 GCVBSFT 7471 6483
4/25/02 GCVBMVT 10554 9497
4/24/02 GCVBIUT 607 537
4/24/02 GCVBIPT 11993 10859
4/24/02 GCVBKGT 5873 5085
4/24/02 GCVBIZT 10865 9958
4/23/02 GCVBIUT 607 537
4/23/02 GCVBIPT 11993 10859
4/23/02 GCVBKGT 5873 5085
4/23/02 GCVBIZT 10865 9958
4/23/02 GCVGSBT 4749 4255
4/23/02 GCVGVFT 9350 8428
4/23/02 GCVBIKT 8135 7319
4/23/02 GCVBPET 7954 7157
4/23/02 GCVBMZT 10426 9353
4/23/02 GCVBMWT 5935 5270
4/23/02 GCVBPAT 9740 8723
4/23/02 GCVBMVT 10554 9497
saurabh_sharma is offline   Reply With Quote
Old Apr 27th, 2002, 07:52 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-27 06:22, saurabh_sharma wrote:
Thanks for the help.

I am facing an issue with the file below.
I need to draw a graph for GCVB ids for the diff. Dates for the diff parameters. I have tried using the pivot table but as the data is to be increased everyday so possibly a v lookup would help.
Pls. advise and help wit this…
calls contacts
4/25/02 GCVBMVT 10554 9497
4/25/02 GCVBSFT 7471 6483
4/25/02 GCVBMVT 10554 9497
4/24/02 GCVBIUT 607 537
4/24/02 GCVBIPT 11993 10859
4/24/02 GCVBKGT 5873 5085
4/24/02 GCVBIZT 10865 9958
4/23/02 GCVBIUT 607 537
4/23/02 GCVBIPT 11993 10859
4/23/02 GCVBKGT 5873 5085
4/23/02 GCVBIZT 10865 9958
4/23/02 GCVGSBT 4749 4255
4/23/02 GCVGVFT 9350 8428
4/23/02 GCVBIKT 8135 7319
4/23/02 GCVBPET 7954 7157
4/23/02 GCVBMZT 10426 9353
4/23/02 GCVBMWT 5935 5270
4/23/02 GCVBPAT 9740 8723
4/23/02 GCVBMVT 10554 9497
If you're going to create a pivot table from your data, you better use a dynamic name range and give this name as Range to the Wizard.

I'll assume the sample above to be in A1:D20 including labels/column headings in a worksheet called Data.

Activate Insert|Name|Define.
Enter Nrecs as name in the Names in Workbook box.
Enter as formula in the Refers to box:

=MATCH(9.99999999999999E+307,Data!$A:$A)

Note that this formula uses your dates column.

Activate Add. (Don't leave yet the Define Name window.)

Enter Drange as name in the Names in Workbook box.
Enter as formula in the Refers to box:

=OFFSET(Data!$A$1,0,0,Nrecs,4)

Note that 4 indicates how many columns your data area covers.

Activate OK.

Now give Drange as value of Range in PivotTable Wizard.

The above allows you to add to or delete from your data area as many records as you wish. At refresh PivotTable will know the new range.

Aladin



Aladin Akyurek is offline   Reply With Quote
Old Apr 27th, 2002, 08:37 AM   #5
saurabh_sharma
New Member
 
Join Date: Apr 2002
Posts: 10
Default

Thanks for teh help wit pivot table
can we also use the simpler verion step by stpe look up functions as well and link the graph input to them as well?

Quote:
On 2002-04-27 06:52, Aladin Akyurek wrote:
Quote:
On 2002-04-27 06:22, saurabh_sharma wrote:
Thanks for the help.

I am facing an issue with the file below.
I need to draw a graph for GCVB ids for the diff. Dates for the diff parameters. I have tried using the pivot table but as the data is to be increased everyday so possibly a v lookup would help.
Pls. advise and help wit this…
calls contacts
4/25/02 GCVBMVT 10554 9497
4/25/02 GCVBSFT 7471 6483
4/25/02 GCVBMVT 10554 9497
4/24/02 GCVBIUT 607 537
4/24/02 GCVBIPT 11993 10859
4/24/02 GCVBKGT 5873 5085
4/24/02 GCVBIZT 10865 9958
4/23/02 GCVBIUT 607 537
4/23/02 GCVBIPT 11993 10859
4/23/02 GCVBKGT 5873 5085
4/23/02 GCVBIZT 10865 9958
4/23/02 GCVGSBT 4749 4255
4/23/02 GCVGVFT 9350 8428
4/23/02 GCVBIKT 8135 7319
4/23/02 GCVBPET 7954 7157
4/23/02 GCVBMZT 10426 9353
4/23/02 GCVBMWT 5935 5270
4/23/02 GCVBPAT 9740 8723
4/23/02 GCVBMVT 10554 9497
If you're going to create a pivot table from your data, you better use a dynamic name range and give this name as Range to the Wizard.

I'll assume the sample above to be in A1:D20 including labels/column headings in a worksheet called Data.

Activate Insert|Name|Define.
Enter Nrecs as name in the Names in Workbook box.
Enter as formula in the Refers to box:

=MATCH(9.99999999999999E+307,Data!$A:$A)

Note that this formula uses your dates column.

Activate Add. (Don't leave yet the Define Name window.)

Enter Drange as name in the Names in Workbook box.
Enter as formula in the Refers to box:

=OFFSET(Data!$A$1,0,0,Nrecs,4)

Note that 4 indicates how many columns your data area covers.

Activate OK.

Now give Drange as value of Range in PivotTable Wizard.

The above allows you to add to or delete from your data area as many records as you wish. At refresh PivotTable will know the new range.

Aladin



saurabh_sharma is offline   Reply With Quote
Old Apr 27th, 2002, 09:19 AM   #6
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default


On 2002-04-27 07:37, saurabh_sharma wrote:
Thanks for teh help wit pivot table
can we also use the simpler verion step by stpe look up functions as well and link the graph input to them as well?


You appear to want a formula-based approach. OK, but What is "GCVB ids for the diff. Dates for the diff parameters"? I mean it's not clear to me what the lookup values are? Care to elaborate on that?
Aladin Akyurek is offline   Reply With Quote
Old Apr 27th, 2002, 09:30 AM   #7
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Hi Saurabh:
Quote:
Thanks for teh help wit pivot table
can we also use the simpler verion step by stpe look up functions as well and link the graph input to them as well?
It is not quite clear what exactly you are asking, you do not however necessarily need a VLOOKUP function. Let us look into your data a little bit ... if the first record started in cell A2, then

A2 will house 4/25/2002
B2 will house GCVBMVT
C2 will house 10554
D2 will house 9497

so your entire dataset will be housed in cells A2:D20

Now let us say you are interested in locating a record with ID of GCVBIUT (say in cell F2)... you can locate in which row it lies by using the following formula in cell G2 ...

=MATCH($F2,B2:B20,0) will give 4 as the row number where this recod is encountered first

then
=INDEX($A$2:$D$20,MATCH($F2,$B$2:$B$20,0),1) will give you 4/24/2002 as the date associated with this record the first time this record is encountered

so you can also locate the other two pareameters associated with this record by adjusting the above formula

if you want to count the number of times this ID is encountered in your dataset, use the formula ...

=COUNTIF($B$2:$B$20,$F2) ... to give 2

I believe the formulas that you will need are covered in the set of formulas delineated above. I hope this will help you in your project of charting the data and the associated parameters.

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

Edit: Deleted inactive website from hardcoded signature

[ This Message was edited by: Yogi Anand on 2003-01-19 13:35 ]
Yogi Anand is offline   Reply With Quote
Old Apr 27th, 2002, 09:32 AM   #8
saurabh_sharma
New Member
 
Join Date: Apr 2002
Posts: 10
Default

Thanks for seeking more info.
I need to automate reports where performance by differnt associates appears in a consolidated report for 1 day. The macro is copying all the data one below the other. I need a graph of 1 particular id for all dates as a run chart and for 1 parameter at a time.
Hope it clarifies...
Quote:
On 2002-04-27 08:19, Aladin Akyurek wrote:

On 2002-04-27 07:37, saurabh_sharma wrote:
Thanks for teh help wit pivot table
can we also use the simpler verion step by stpe look up functions as well and link the graph input to them as well?


You appear to want a formula-based approach. OK, but What is "GCVB ids for the diff. Dates for the diff parameters"? I mean it's not clear to me what the lookup values are? Care to elaborate on that?
saurabh_sharma is offline   Reply With Quote
Old Apr 27th, 2002, 09:33 AM   #9
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Hi Aladin:
I did not see your last post, before I posted mine -- as you stated, it is not clear what specifically Saurabh is asking.

Regards!

Yogi Anand

Yogi Anand is offline   Reply With Quote
Old Apr 27th, 2002, 11:34 AM   #10
saurabh_sharma
New Member
 
Join Date: Apr 2002
Posts: 10
Default

Thanks for seeking more info.
I need to automate reports where performance by differnt associates appears in a consolidated report for 1 day. The macro is copying all the data one below the other. I need a graph of 1 particular id for all dates as a run chart and for 1 parameter at a time.
Hope it clarifies...



Quote:
On 2002-04-27 08:33, Yogi Anand wrote:
Hi Aladin:
I did not see your last post, before I posted mine -- as you stated, it is not clear what specifically Saurabh is asking.

Regards!

Yogi Anand

saurabh_sharma 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 06:56 AM.


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