+ Reply to Thread
Results 1 to 4 of 4

Pull Column Values from Another Sheet that are in the Current Sheet

  1. #1
    Registered User
    Join Date
    05-03-2020
    Location
    Planet Earth
    MS-Off Ver
    2016
    Posts
    2

    Pull Column Values from Another Sheet that are in the Current Sheet

    If this has been posted before, and I missed it, I apologize. I did look, but I could have missed in my skimming.

    I work with SalesForce A LOT, a WHOLE LOT, and everything is driven off the SalesForce ID. Anyhow, I have several extract files I am combining into one to populate into a new SalesForce Object. Obviously there will be some New items and some combined items, so an UPSERT willbe used via Data Loader. However, for the source CSV files, I am trying to pull the SFIDs that are NOT a match to my current spreadsheet.

    So, to MATCH a value, and pull a corresponding reference, that is easy (see below) and this is how I populate the fields that will be record updates
    =IF(LEN($B2)=0," ",IFERROR(INDEX('Sheet B'!A2:$A$20,MATCH(TRUE,EXACT($B2,'Sheet B'!B2:$B20),0))," "))
    $B2 is the the current column/field of Sheet A that I want match against
    Sheet-B Column A is the index location and the value I will copy
    Sheet-B Column B is what I am matching my Sheet A '$B2' value against

    However, I need to create a second sheet where I do the opposite... how do I also pull any value that IS NOT a match to my current spreadsheet, and only the values that are not a match, e.g. A14 & A15 from Sheet B? These will be my new record entries.
    Attached Files Attached Files
    Last edited by CodeInExcel; 05-03-2020 at 12:28 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,669

    Re: Pull Column Values from Another Sheet that are in the Current Sheet

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-03-2020
    Location
    Planet Earth
    MS-Off Ver
    2016
    Posts
    2

    Re: Pull Column Values from Another Sheet that are in the Current Sheet

    Thanks... Lesson learned, and I have complied.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,669

    Re: Pull Column Values from Another Sheet that are in the Current Sheet

    Administrative Note:

    One more thing!

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.

+ 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] Lookup values on another sheet and change background color on current sheet
    By x65140 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2019, 08:15 AM
  2. [SOLVED] current region vba sheet 1 to sheet 2 paste specials values
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2017, 02:39 PM
  3. pull data from two sheet and paste into master sheet with desired column's only
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2014, 03:39 AM
  4. [SOLVED] Pull unique values from column without duplicates and export to another sheet
    By vandetta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-02-2013, 10:35 PM
  5. Replies: 4
    Last Post: 08-29-2012, 10:32 AM
  6. Replies: 0
    Last Post: 01-23-2012, 02:49 PM
  7. Replies: 4
    Last Post: 06-03-2009, 04:59 PM

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