+ Reply to Thread
Results 1 to 4 of 4

Google sheet, wish to copy paste data from a sheet to another reference from two column

  1. #1
    Registered User
    Join Date
    06-16-2021
    Location
    India
    MS-Off Ver
    Microsoft® Excel® 2019 MSO (16.0.14131.20000) 64-bit
    Posts
    10

    Google sheet, wish to copy paste data from a sheet to another reference from two column

    I need to copy paste data of column TAGS, NOTES, and SNAPSHOTS to NEW sheet, and for unique value I selected "Date" and "Price" should be match.

    So for that copy data from Sheet "CSV" from column I with reference from two values matching column A and E and paste data to sheet "NEW" of column M match data from sheet "NEW" column A and G

    I asked Gemini she provide this formula =INDEX(CSV!I:I, MATCH(NEW!A1:A, CSV!A1:A, 0)) but got some error probably FORMATTING ISSUES

    I attached sheet for reference and provide editable link of google sheet docs.google.com/spreadsheets/d/1kt0_NPnm9MO9iioC2eZeZ0-xJeWgw1tBMLhxNsoENGI/edit?usp=sharing

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-13-2016
    Location
    Sheffield, England
    MS-Off Ver
    2016
    Posts
    216

    Re: Google sheet, wish to copy paste data from a sheet to another reference from two colum

    To achieve the desired result, you can use the following formula in cell M2 of the "NEW" sheet and drag it down:


    =IFERROR(INDEX(CSV!I:I, MATCH(1, (CSV!A:A=NEW!A2)*(CSV!E:E=NEW!G2), 0)), "")

    This formula will search for the first occurrence of a combination of values in column A (Date) and column E (Price) in the "CSV" sheet that matches the corresponding values in columns A (Date) and G (Price) in the "NEW" sheet. Once found, it will return the value from column I (TAGS) in the "CSV" sheet.

    Make sure to replace the range references (CSV!I:I, CSV!A:A, CSV!E:E, NEW!A2, NEW!G2) with the appropriate ranges in your sheet.

    Here's how you can use it:

    Go to cell M2 in the "NEW" sheet.
    Enter the formula provided above.
    Press Enter.
    Drag the formula down to fill the rest of the cells in column M.

    This should copy the data from column I (TAGS) in the "CSV" sheet to column M in the "NEW" sheet based on matching values in columns A and E of "CSV" with columns A and G of "NEW".

  3. #3
    Registered User
    Join Date
    06-16-2021
    Location
    India
    MS-Off Ver
    Microsoft® Excel® 2019 MSO (16.0.14131.20000) 64-bit
    Posts
    10

    Re: Google sheet, wish to copy paste data from a sheet to another reference from two colum

    I'm getting Blank cell result in sheet "NEW" you can also checkout google sheet link docs.google.com/spreadsheets/d/1kt0_NPnm9MO9iioC2eZeZ0-xJeWgw1tBMLhxNsoENGI/edit?usp=sharing

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,550

    Re: Google sheet, wish to copy paste data from a sheet to another reference from two colum

    For the excel file the following array entered formula** will work for tags and notes:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    1. Select cell M2 and paste the formula into the formula bar.
    2. Activate the formula as described above.
    3. Drag the fill handle over to cell N2
    4. While cells M2:N2 are still selected double click the fill handle to copy the formula down
    If you don't want to see the zeros in columns M:N then custom format those columns using: General;;
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Google sheet: copy and paste column in exact format not working
    By rayted in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 06-28-2020, 04:17 AM
  2. [SOLVED] Google Sheet: Retrieve data from another sheet, but based on variable of certain column
    By naveron in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 6
    Last Post: 08-17-2019, 01:42 PM
  3. Copy/Paste cell range from sheet 1 to sheet 2 in numbers match in reference columns.
    By trickedout in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-23-2016, 07:44 PM
  4. Replies: 2
    Last Post: 01-22-2014, 05:36 PM
  5. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  6. Macro to copy and paste data from one work sheet to another using a reference
    By Natechamb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2011, 10:57 AM
  7. Macro to Copy/Paste Data from Reference Sheet
    By Dredger in forum Excel General
    Replies: 1
    Last Post: 01-14-2011, 01:42 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