+ Reply to Thread
Results 1 to 3 of 3

Database Function

  1. #1
    Registered User
    Join Date
    05-29-2009
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    78

    Database Function

    HI,
    is there a database function (or any other function) that will take all the customer ID's that contain C @ the beginning & insert them in a seperate table underneath the table @ the top? i am aware that it can be done by filtering but was wondering if it can be done by a formula.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Database Function

    Off topic:

    Maybe it's better way to define array with:

    Basic Toolkit
    Cement Mixer
    Chainsaw
    Heavy Toolkit
    Lawn Roller
    Lawnmower
    Rotavator
    Strimmer

    with related prices, becuase tomorrow you might change those prices and all values in table will change (no need to adjust formula).

    So, instead of:

    =LOOKUP($D2;{"Basic Toolkit"\"Cement Mixer"\"Chainsaw"\"Heavy Toolkit"\"Lawn Roller"\"Lawnmower"\"Rotavator"\"Strimmer"};{21\33\18\30\10\22\27\13})

    you might consider:

    =VLOOKUP($D2; array, 2, FALSE)

    where array can be defined somewhere else, for example Sheet2!A1:B50
    Never use Merged Cells in Excel

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Database Function

    You can create a formula which uses index, rank, large and match, incorporating a left()=C wouldn't be too hard, there are examples on this forum, but they are absolutely hideous. It's such a bad way of doing it I won't bother trying!

    What you could consider is creating a pivot table - with a helper column in your raw data (like =left(customername)) you could easily select customer groups by initial.

    CC

+ 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