Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2007

Tip: Looking for answers? Try searching our database.

looking for logic guidance

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruce - 17 Feb 2007 02:13 GMT
First, I am using excel 2003.

I have data that is in a "flat" format meaning that data is like:
NAME    MAILING    SHIPPING
name1    address1-a    Address2-b
name2    address1-c    Address2-d
name3    address1-e    address2-f

There may be duplicates of name and address1 such as:
NAME    MAILING    SHIPPING
name1    address1-a    Address2-b
name2    address1-c    Address2-d
name2    address1-c    address2-f
name3    address1-g    address2-h

What I need to do is get data from the previous example into the following
format while I need to know if the address is from mailing address or
billing address
NAME    ADDRESS    TYPE
name1    address1-a    MAILING
name1    Address2-b  SHIPPING
name2    address1-c   MAILING
name2    Address2-d  SHIPPING
name2    address2-f  SHIPPING
name3    address1-g   MAILING
name3    Address2-h  SHIPPING

I am looking for how I would do this.... How should the logic be, or some
samples of how to break this dow.  (this is far simplified of my actual
data, but shows what I need to do (i hope!))

Thanks
Bruce
Tom Ogilvy - 17 Feb 2007 03:40 GMT
Simple way is to copy the data from columns 1 & 2 to a new sheet
Select the top cell.  Hold down the shift key and select the bottom cell
In the formula bar enter
MAILING
then  Ctrl+enter

Below this data, copy columns 1 and 3
put in the third column as above with SHIPPING

Sort the data on name, address, 3rd column

See Chip Pearson's page for techniques of working with duplicate

http://www.cpearson.com/excel/duplicat.htm

Signature

Regards,
Tom Ogilvy

> First, I am using excel 2003.
>
[quoted text clipped - 29 lines]
> Thanks
> Bruce
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.