+ Reply to Thread
Results 1 to 10 of 10

Compare 2 colums and if there is a match add data from anothe column

  1. #1
    Registered User
    Join Date
    03-04-2024
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    5

    Compare 2 colums and if there is a match add data from anothe column

    Guys,

    Scratching my head here.

    Scenario

    I want to check SKU from the Shopify Tab (column O) against the SKU (column B) from the raw data tab and if they match pull in the data from column D of the Raw Data tab

    basically pull in the data from Colum D Raw Data in line with associated SKU in the shopify file

    The problem is this is should be a column calculation and not a row compared to same row (this is an easy formula)


    any help greatly appreciated

    Cheers
    Rich
    Attached Files Attached Files
    Last edited by weewizard69; 03-04-2024 at 06:46 AM.

  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
    81,247

    Re: Compare 2 colums and if there is a match add data from anothe column

    Administrative Note:

    Welcome to the forum.

    There's only one worksheet in your sample file ...

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Compare 2 colums and if there is a match add data from anothe column

    You have only attached the raw data sheet (in the form of a .csv file) - you also need to attach the Shopify file.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    03-04-2024
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Compare 2 colums and if there is a match add data from anothe column

    sorry my bad

    should have written tab not sheet ;-)

    I've updated my profile on which version of excel used

  5. #5
    Registered User
    Join Date
    03-04-2024
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Compare 2 colums and if there is a match add data from anothe column

    sorry my bad Pete

    My wording was in correct

    updated now


    all detail is included in one file ;-)

  6. #6
    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
    81,247

    Re: Compare 2 colums and if there is a match add data from anothe column

    There is still only ONE set of data in the test file.

  7. #7
    Registered User
    Join Date
    03-04-2024
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Compare 2 colums and if there is a match add data from anothe column

    guys apologies

    file updated now
    Attached Files Attached Files
    Last edited by weewizard69; 03-04-2024 at 07:29 AM.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Compare 2 colums and if there is a match add data from anothe column

    A .csv file can only have a single sheet when it is put into Excel. You should attach a sample Excel file, by following the instructions in the yellow banner at the top of the screen.

    Pete

  9. #9
    Registered User
    Join Date
    03-04-2024
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Compare 2 colums and if there is a match add data from anothe column

    updated file buddy, many thanks

  10. #10
    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
    81,247

    Re: Compare 2 colums and if there is a match add data from anothe column

    Try this:

    =INDEX('raw data'!$D$2:$D$883,MATCH(O2,'raw data'!$B$2:$B$883,0))
    Last edited by AliGW; 03-04-2024 at 08:14 AM. Reason: Typo fixed.

+ 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. compare 2 colums and output match in thrid
    By hiranuk in forum Excel General
    Replies: 2
    Last Post: 04-29-2020, 10:53 AM
  2. Add Code to compare Dates, then run macro to match colums
    By AirstarDispatch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2019, 02:48 AM
  3. Replies: 6
    Last Post: 07-25-2016, 12:07 PM
  4. [SOLVED] to spread data in a column in order to match it wit other colums
    By utsilasi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-13-2014, 10:28 AM
  5. [SOLVED] Compare Colums and Color enire row if values (text) do not match
    By GatorsBucs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-27-2013, 11:43 AM
  6. Replies: 2
    Last Post: 06-07-2012, 07:03 AM
  7. Replies: 14
    Last Post: 01-29-2008, 04:47 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