+ Reply to Thread
Results 1 to 2 of 2

Auto Inserting Column based on V-Look up results

  1. #1
    Registered User
    Join Date
    05-16-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    54

    Auto Inserting Column based on V-Look up results

    Unsure if this is even possible but thought I would ask as a Google search is coming up blank.

    Basically I want to be able to auto insert it a column if the V-Look up data returns more than one value.

    eg
    SHEET 1
    Column 1 - Column 2 - Column 3
    PARTNO1 Competitor 1 EAF2330
    PARTNO1 Competitor 1 EAF2882
    PARTNO1 Competitor 1 EAF3002
    PARTNO2 Competitor 1 EAF1550
    PARTNO3 Competitor 2 EAF0446
    PARTNO3 Competitor 2 EAF8990
    PARTNO4 Competitor 1 EAF8992
    PARTNO5 Competitor 4 EAF8555



    SHEET 2 - Destination - INITIAL STRUCTURE
    Competitor1 Competitor2 Competitor3 Competitor4
    PARTNO1
    PARTNO2
    PARTNO3
    PARTNO4
    PARTNO5



    SHEET 2(Destination)

    Competitor1 Competitor1 Competitor1 Competitor2 Competitor2 Competitor3 Competitor4
    PARTNO1 EAF2330 EAF2882 EAF3002
    PARTNO2 EAF1550
    PARTNO3 EAF0446 EAF8990
    PARTNO4 EAF8992
    PARTNO5 EAF8555


    Using a VLOOKUP/VBA etc. how can I get to the finished file?
    Basically I want it so that it automatically adds Columns based on the number of cross references and should a cross reference be removed i.e. EAF3002, it would then automatically remove the extra column as it's not needed.
    Also, lets say an extra Cross reference for 'Competitor 4' was added against PARTNO5, it would auto add a column for Competitor 4 as there would now be 2 cross references applied to Competitor 4.

    Is this even possible? In the past I have used an INDEX as an Array Formula to show values horizontally but what I'm after now is something similar, but something dynamic that will recognise the Competitor and auto add/remove columns as necessary.


    (I tried adding the Excel file but unable to attach on browser)
    Attached Files Attached Files
    Last edited by Steve1977; 01-20-2020 at 10:23 AM.

  2. #2
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    184

    Re: Auto Inserting Column based on V-Look up results

    Hi,

    Click on Go Advance>Manage Attachment> Add attachment> Select from Computer>Hit add attachment text.
    Then hit close this window button below and then post comment.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Inserting a date based on results in another cell.
    By silverfern in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-29-2015, 02:06 PM
  2. Inserting a cell in one column based on one condition fro another column
    By manojktvm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2014, 06:53 AM
  3. Need help creating custom sheets based on auto filter results
    By trow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2012, 04:10 PM
  4. Auto-populating COMMENTS based upon results of a formula
    By CQHixi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-07-2012, 01:20 PM
  5. Replies: 3
    Last Post: 12-24-2011, 09:19 AM
  6. Auto-Extract column based on filter results
    By Munir Nizar in forum Excel General
    Replies: 0
    Last Post: 08-16-2011, 02:10 AM
  7. VBA: Macro for Inserting Column and Auto-populating Specified Formulas and Values
    By ranuse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2010, 05:34 PM

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