+ Reply to Thread
Results 1 to 7 of 7

Report returns numbers that represent names - I want the names!

  1. #1
    Registered User
    Join Date
    04-21-2011
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    4

    Report returns numbers that represent names - I want the names!

    I download a report that gives me numbers that represent customer names, like this:

    1= Customer1
    2= Customer 2
    3= Customer 3
    ...
    30= Customer 30

    so my report in column A is randomized and extends hundreds of rows.

    1
    11
    2
    23
    15
    2
    3
    30
    12

    Each Customer has it's own group of accounts:

    Customer 1 = 1, 2, 3
    in which 1 = CA, 2 = FL, 3 = MN
    Customer 2 = 1, 2
    in which 1 = OR, 2 = ND
    ...
    Customer 30 = 1, 2
    in which 1 = MA, 2 = GA

    So Column B looks like this

    1
    2
    3
    1
    2
    3
    3
    2
    3
    2
    1

    I want to create two columns, C & D that return the Customer Name and the customer Account.

    Column C (Dependent on Column A - CustomerNo)
    Customer 1
    Customer 11
    Customer 2
    ...

    Column D (Dependent on Column A & Column B - CustomerNo > AccountNo)
    GA
    MN
    CA

    Do I need VBA? I just got a book for it but I'm only on chapter 6 so I haven't discovered the answer yet. Is it possible to do this with just a formula alone?

    I appreciate the time, thanks for reading.
    Last edited by jemide; 04-21-2011 at 03:48 PM.

  2. #2
    Registered User
    Join Date
    04-21-2011
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Report returns numbers that represent names - I want the names!

    Basically I want to do Replace All "1" in column CustomerNo with "Customer 1" and "2" with "Customer 2" etc. etc., but I want the values to appear in a new column - I still want the numbers.

    I don't know how to do the same thing with the AccountNo column - and especially because it's IF dependent on which value is in CustomerNo column.

    How do I make the column CustomerName and AccountName?

    Let me know if an attached spreadsheet will help.

    Thanks, again.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Report returns numbers that represent names - I want the names!

    If you've got tables of values set up within the workbook to look up the customer names and the accounts then you can use some look up formulas...

    If you can attach a workbook with some sample (non-confidential) data, we may be able to help.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    04-21-2011
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Report returns numbers that represent names - I want the names!

    I've attached the spreadsheet that explains it.
    Attached Files Attached Files

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Report returns numbers that represent names - I want the names!

    In D2:

    Please Login or Register  to view this content.
    in E2:

    Please Login or Register  to view this content.
    in F2:

    Please Login or Register  to view this content.
    adjust ranges in each to suit your real data and copy them down the table.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-21-2011
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Report returns numbers that represent names - I want the names!

    You, good sir, have made my day. Much thanks!

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Report returns numbers that represent names - I want the names!

    You are welcome,

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1