+ Reply to Thread
Results 1 to 7 of 7

Need data from sheet A to appear in sheet B based on data posted in a column in sheet A?

  1. #1
    Registered User
    Join Date
    11-03-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    4

    Need data from sheet A to appear in sheet B based on data posted in a column in sheet A?

    OK! Well that was a confusing title? This is my first post so, please be gentle! I apologize in advance for the long-winded description but, I didn't know any other way to explain this!!

    Here's my problem. I have a workbook where Sheet A is a Master Order Form. Employees will input the quantities they need in Column C. The sheet will be otherwise protected. Sheet B is a "printable" order form that only contains the rows from Sheet A where the Quantity on Sheet A is not blank and is >=1. This will allow me to print sheet B with no blank rows for the items I don't need.

    Anyway, some time in the past, I found the following formula which claims to be able to do what I want:

    =IF(ROWS($1:1)>MAX(C:C),"",INDEX(A:A,MATCH(ROWS($1:1),C:C,0)))

    I'm pretty good with Excel but, I'm no pro. This formula is over my head. And, I can't get it to work correctly across two sheets. Can anyone explain, in dummy terms, what this formula is "saying/doing"? I really need my sheet to work and this is the only formula I've found that seems to give me a chance for success.

    BTW, any other suggestions would be greatly appreciated!

    I've attached a sample of my spreadsheet for your review. Please let me know if you need any further information.

    HDForm_Test01.xlsx

    Thanks in advance!
    Firebird77

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need data from sheet A to appear in sheet B based on data posted in a column in sheet

    Hi and welcome to the forum.

    Personally I'd be inclined to use a simple filtering macro to extract the records that are marked.
    On the Master Order form enter 'QTY' in G1 and '>0' in G2

    Now add the following macro and attach it to a simple button shape so that you can simply click the shape to run the macro.


    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-03-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Need data from sheet A to appear in sheet B based on data posted in a column in sheet

    Thanks for the reply! However, I have to admit that I'm not as skilled in Excel as I would like to be. And, I've never used macros. So, I don't understand exactly how to do what you are suggesting. Can you give me a more step-by-step description?

    Thanks again!

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Need data from sheet A to appear in sheet B based on data posted in a column in sheet

    Hi
    enter this arary formula to a9 cell
    =IFERROR(INDEX('Master Order Form'!A:A,SMALL(IF('Master Order Form'!$C$9:$C$23>0,ROW('Master Order Form'!$C$9:$C$23),""),ROW('To Be Sent'!A1))),"")

    Hope this is what you want
    Attached Files Attached Files
    Appreciate the help? CLICK *

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need data from sheet A to appear in sheet B based on data posted in a column in sheet

    Hi,

    See attached
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-03-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Need data from sheet A to appear in sheet B based on data posted in a column in sheet

    WOW!! Thanks to everyone for the suggestions. A special thanks to Richard for the extra effort. All of the suggestions worked great. I think I'm going to try Richard's method first. But, having the other options is a God-send!

    Thanks again!
    Firebird77

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need data from sheet A to appear in sheet B based on data posted in a column in sheet

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] 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
  2. [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
  3. As user fills out data sheet, then fill out a results sheet based on data sheet entry
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2012, 03:57 PM
  4. Copy column data on one sheet to row or column date on another sheet based on user in
    By soready42012 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2012, 12:03 AM
  5. Select data in Sheet 2 based on column values in Sheet 1
    By Snehith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2011, 08:52 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