+ Reply to Thread
Results 1 to 3 of 3

Copying data from sheet 1 to sheet 2 based on value from one cell - seeking help

  1. #1
    Registered User
    Join Date
    11-25-2022
    Location
    London
    MS-Off Ver
    365
    Posts
    6

    Copying data from sheet 1 to sheet 2 based on value from one cell - seeking help

    Can someone write me a macro which will copy required data from Sheet Stock to Counting_form when the value from E1 Counting form will be equal to Area from Stock?
    I would really appreciate some help
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,597

    Re: Copying data from sheet 1 to sheet 2 based on value from one cell - seeking help

    Try

    In A3

    =IFERROR(INDEX(Stock!A$1:A$400,AGGREGATE(15,6,ROW($A$1:$A$400)/(Stock!$I$1:$I$400=Counting_Form!$G$2),ROWS($1:1))),"")

    Copy across and down

    G2 is Data Validation using named range "Area_List"

    E1=G2
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    11-25-2022
    Location
    London
    MS-Off Ver
    365
    Posts
    6

    Re: Copying data from sheet 1 to sheet 2 based on value from one cell - seeking help

    Quote Originally Posted by JohnTopley View Post
    Try

    In A3

    =IFERROR(INDEX(Stock!A$1:A$400,AGGREGATE(15,6,ROW($A$1:$A$400)/(Stock!$I$1:$I$400=Counting_Form!$G$2),ROWS($1:1))),"")

    Copy across and down

    G2 is Data Validation using named range "Area_List"

    E1=G2
    Many thanks Problem 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. [SOLVED] Copying data from several sheets into main sheet based on cell value
    By Str|ker in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-31-2021, 06:48 AM
  2. copying data from one sheet to named sheets based on list on third sheet
    By Caddman2001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2015, 11:45 AM
  3. [SOLVED] Copying cell data from one sheet to another based on date.
    By Skeeterj in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-07-2014, 04:17 PM
  4. Copying a row of data to another sheet based on criteria in first sheet
    By Carl Mukluk in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 02-19-2013, 08:01 AM
  5. [SOLVED] Macro for copying data from one column in sheet 2 based on two criterias in sheet 1
    By baardings in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2012, 01:50 PM
  6. Copying data from one sheet to another based on cell color
    By Redcarn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2012, 03:16 AM
  7. Replies: 4
    Last Post: 03-22-2011, 02:26 AM

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