+ Reply to Thread
Results 1 to 7 of 7

Help with LookUp, IF etc

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help with LookUp, IF etc

    Hi

    I'm trying to automatically create the result column as a text field. I need to look up a range of values in the Group field, find all occurrences of a matching number (e.g. 1 or 2 - although there could be more) and then create the results field from adjacent cells. I expect there is a way using nested IF and LOOKUP functions but I just can't work out how to do it. Please see what I'm trying to achieve below. I'd really appreciate some help with this.


    Group Code Description Result
    c955 Product Z c955 Product Z
    1 d951 Product A D951/D952/D953 Product A
    1 d952 Product B
    1 d953 Product D
    d959 Product E d959 Product E
    2 D444 Product F D444/D555 Product F
    2 D555 Product G

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Help with LookUp, IF etc

    Look at this recent thread where the OP was looking to do something similar.

    http://www.excelforum.com/excel-form...cate-data.html
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with LookUp, IF etc

    Hi Alan

    Thanks for the speedy response. Whilst I struggled to understand how the formula works I don't think it does what I need it to. I'm trying to create a text string from multiple fields but only when they need to be grouped (hence why I thought I could work with a group identifier)into that description. Sadly I don't have any experience with Macros either. I'm a bit stumped with this.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with LookUp, IF etc

    I cannot sort out what is a Group Code, Description and Result from your post. Can you upload it as an Excel sheet? (Go Advanced> Manage Attachments)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    11-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with LookUp, IF etc

    Hi

    Does this do the trick?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-25-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2013 / 2016
    Posts
    69

    Re: Help with LookUp, IF etc

    Sorry, wrong post!
    Last edited by How How; 11-16-2012 at 11:06 AM. Reason: Reply deleted

  7. #7
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Help with LookUp, IF etc

    Zillon,

    Welcome to the forum!
    Unfortunately, Excel's native CONCATENATE() function doesn't work with arrays. This means that there is no way Excel can perform what you're asking for without the use of VBA or an add-in.
    I have created a UDF for tasks like this and it is located here:
    http://www.excelforum.com/tips-and-t...geravatar.html

    Attached is a modified version of your posted workbook.
    It contains the ConcatAll UDF that I created. Then in cell D5 and copied down is this array formula:
    Please Login or Register  to view this content.

    Note that array formulas must be entered with Ctrl+Shift+Enter and not just Enter. That's how the formula gets surrounded by the curly braces {}. Do not try to add those yourself.
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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