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 May 21st, 2002, 07:45 AM   #1
Andy D 2002
 
Join Date: Apr 2002
Location: Andy Devine
Posts: 106
Default

hi i have olumns of data arranged as, for example, below

Col A Col B Col C ***** ****** ******
Client 1 Region 1 A
Client 1 Region 2 B
Client 1 Region 3 C
Client 2 Region 2 A
Client 2 Region 3 B
etc


If column D2 i have the following type formula:
=If(a1&b1=a2&b2,"",A2&" / "&b2)

Question: if i've hidden columns A and B and i select, say, all "B" records in column C then in example above the cells in column D will (correctly) show ""..

can i modify my formula in column D in any way so show client name and region in these cases..hope makes sense

any help appreciated thanks Andy
__________________
Andy Devine
Andy D 2002 is offline   Reply With Quote
Old May 21st, 2002, 08:39 AM   #2
sen_edp
 
sen_edp's Avatar
 
Join Date: Mar 2002
Location: Hellas
Posts: 552
Default

hello Andy

Please explain further , what exactly you want, be more concise about it.
I tried your example , but i miss something !
thanks



__________________
Best Regards
Andreas
sen_edp is offline   Reply With Quote
Old May 22nd, 2002, 07:15 PM   #3
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Andy,

drag the formula down from D2 to D6 before you filter ?

(sorry, your example isn't very clear, as Andreas pointed out !)
Chris Davison is offline   Reply With Quote
Old May 22nd, 2002, 10:55 PM   #4
DZarlengo
 
Join Date: May 2002
Posts: 63
Default

I've carefully worked through your data, and cannot understand what you want either.

How about explaining it in words rather than formulas? Use an approach such as:

1. I need to show which regions our clients have activity in.
2. I don't want to show duplicates.
3. If a client has no activity, then...
4. If a client has activity, then...

That will make it easier for us to assist you.
DZarlengo is offline   Reply With Quote
Old May 23rd, 2002, 06:44 AM   #5
Andy D 2002
 
Join Date: Apr 2002
Location: Andy Devine
Posts: 106
Default

hi all
thanks for replies and sorry as was unclear

my aim is basically not to show "repeats" in a list

for example (and sorry i can't put in this words quite so easily)

In Col A:
Cell A1: "Client"
Cell A2 - A7 i have 1,1,1,2,2,2
Cell B1: "Region"
Cell B2 - B7: i have A,A,A,A,A,A
Cell C1: "Type"
Cell c2 - c7: i have X,Y,Z,X,Y,Z
Cell D1: "Client/Region"
In cell D2 i have formula:=IF(AND(A1=A2,B1=B2),"",A2&" / "&B2)
and this formula is copied down to D7

This formula will show one of each client/region in column D which is good - it looks nice and clear when is printed off - however if i filter records of type Y in column C, my entries in D will now (correctly) be blank

Is there a way i can modify the formula so i still see the relevant client / region in column "D" regardless of my filter on column C?

hope is clearer, really sorry if is not
thanks for reading, any help appreciated
Andy

p.s. i have a work around, but i've never posted this question - if you don't ask you don't get....

__________________
Andy Devine
Andy D 2002 is offline   Reply With Quote
Old May 23rd, 2002, 09:11 AM   #6
sen_edp
 
sen_edp's Avatar
 
Join Date: Mar 2002
Location: Hellas
Posts: 552
Default

hello Andy

put this formula in d2 and copy it down

=IF(AND($A$1=A2,$B$1=B2)," ",A2&"/"&B2)

FROM YOUR LAST REPLY ,i think THIS IS WHAT YOU WANT , IF NOT GIVE MORE DETAILS, ON WHAT YOU WISH TO MAKE -
__________________
Best Regards
Andreas
sen_edp is offline   Reply With Quote
Old May 23rd, 2002, 10:55 AM   #7
PDuPre'
 
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
Default

I am able to reconstruct your example.
So, basically your formula is comparing the cell reference to the cell reference above it and if they are different then it will display the client and region in the D column.
However, when you apply an autofilter the formulas are comparing to the rows that are hidden. This results in blank labels, when you would like to see the label.
What you need is a dynamic reference that will compare the cell to the cell "shown" above it in the filter. However the data is filtered. Once the comparison is made you will decide if you need the label or not.
Hope that makes sense to everyone.
-------------------------------
Is there a way to have a dynamic reference that is sensitive to the cell "shown" above it in the filtered data?
PDuPre' 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 +1. The time now is 10:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 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