+ Reply to Thread
Results 1 to 6 of 6

Retrieve values between different worksheets with conditions

  1. #1
    Registered User
    Join Date
    11-03-2021
    Location
    Brussels
    MS-Off Ver
    2019
    Posts
    3

    Retrieve values between different worksheets with conditions

    On Worksheet 1, cell F7 :

    > if the value of the cell F6 equals any value from any cell of the column A Worksheet 2 (e.g. A4)
    > then, on the same row of this matched value (e.g. A4) in Worksheet 2 :
    (1) copy the value of the cell in column C (e.g. C4)
    (2) paste this value back in Worksheet 1, cell F7

    Can someone help me with this please?

    I've made the below formula but it works only for 1 row only. I want to make the formula work for any value of the column like $A$A and $C$C but this doesn't work.

    =IF(F6='CLIENTS'!$A$6;'CLIENTS'!$C$6;"")
    Last edited by elcrazyz; 11-03-2021 at 05:56 PM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Retrieve values between different worksheets with conditions

    Probably
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    should do the job. If not - please see the yellow banner above and attach sample file
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    11-03-2021
    Location
    Brussels
    MS-Off Ver
    2019
    Posts
    3

    Re: Retrieve values between different worksheets with conditions

    Dear Kaper,

    Thanks for your answer. I tried your formula but I didn't manage to make it work.

    Please find attached the files (emptied with only the necessary elements).

    1. Open both files to have links between files working.
    2. See below the initial request adapted with those example files.


    On FILEA, cell F7 :

    > if the value of the cell F6 equals any value from any cell of the column A FILEB (e.g. A4)
    > then, on the same row of this matched value (e.g. A4) in FILEB :
    (1) copy the value of the cell in column C (e.g. C4)
    (2) paste this value back in FILEA, cell F7




    Thanks
    Simon
    Attached Files Attached Files

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Retrieve values between different worksheets with conditions

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and to cover situation of value not found
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and to retrieve data from column H
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    of course could be also nested within IFERROR

    And so on for mrext columns just change $A:$H to proper set of columns and use the last column number as third value in a function

    (In a file you nmay need to reenter addresses of used ranges from FILEB)

    (PS. You don't have to use absolute addresses (with $ signs), relative adresses, with just letters and numbers would be also fine)
    Attached Files Attached Files
    Last edited by Kaper; 11-04-2021 at 11:11 AM.

  5. #5
    Registered User
    Join Date
    11-03-2021
    Location
    Brussels
    MS-Off Ver
    2019
    Posts
    3

    Re: Retrieve values between different worksheets with conditions

    You are absolutely AWESOME !

    Thank you so much for your help, this formula is going to save me tons of time.

    Cheers

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Retrieve values between different worksheets with conditions

    Glad to hear so

    Use the saved time wisely

    Please use "thread tools" above to mark this thread SOLVED

+ 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. Retrieve Unique Values from Columns in Multiple Worksheets
    By philchi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2019, 04:55 PM
  2. [SOLVED] Data Retrieve Match conditions
    By irajeev in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2016, 10:36 PM
  3. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  4. [SOLVED] Trouble with creating new worksheets using cell values with multiple loop conditions
    By johnygaddar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-04-2013, 04:55 AM
  5. Replies: 2
    Last Post: 10-20-2010, 07:23 AM
  6. retrieve values on multiple conditions
    By Myth in forum Excel General
    Replies: 3
    Last Post: 07-29-2010, 05:02 AM
  7. Retrieve values from 2 worksheets.
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2006, 03:20 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