+ Reply to Thread
Results 1 to 11 of 11

Bring referenced Cell Values to Top of Worksheet

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    hell
    MS-Off Ver
    Excel 2007
    Posts
    16

    Bring referenced Cell Values to Top of Worksheet

    ATTACHMENT: Order Form.xlsx

    Okay, this will definitely be a question for the best amongst you. Whoever can figure this out, I will be forever in your debt.

    The situation is this. I am creating an Order form for my job in Excel. On this form, it displays the Top 100 items for sale. All the basic functionality of the form is working fine, my real issue is with the order summary tab.

    On this tab, I would like for any Items with a Quantity on the first Sheet to transfer to a summary on the Second sheet.

    So far, I am able to get the data onto the second spreadsheet. My final question is, can someone help me make the items on the summary sheet go to the top available row? Basically if I have items in row 3, row 7 and row 9 - I would like for the items to automatically fill in rows 3,4,5 respectively. (on the second worksheet)

    I have seen people make this happen (on this board even) but for some reason, when I try using those formulas I do not get the results I need. I have attached the file to this post.

    On the Tab entitled "Adv Piano" this the product list. On that tab, customers can put a Quantity in column G for the items they want to order and that item's details, price, and quantity will automatically appear on the 2nd tab, "Order Details" in columns I - L in the corresponding row (this is already done)

    I need the information in the columns I - L on the "Order Details" sheet to appear in columns C - G on the same sheet, in the same order but to fill in towards the top with the corresponding quantities, item details and price remaining in the same row. Can anyone help with this?

    If you have any questions, let me know and I will get back with you promptly. Thanks!!Order Form.xlsx

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Bring referenced Cell Values to Top of Worksheet

    I didn't download your file but it sounds like you want something like this:

    http://www.excelforum.com/tips-and-t...ml#post3376007
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Bring referenced Cell Values to Top of Worksheet

    Hi Pat,

    Try this solution.
    I removed the formulas in the Order Details sheet and set up a macro to populate the sheet instead.
    Attached Files Attached Files
    Regards,
    Rudi

  4. #4
    Registered User
    Join Date
    04-15-2014
    Location
    hell
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Bring referenced Cell Values to Top of Worksheet

    Quote Originally Posted by RudiS View Post
    Hi Pat,

    Try this solution.
    I removed the formulas in the Order Details sheet and set up a macro to populate the sheet instead.
    Rudi,

    You are truly a Guru. You got so much closer to solving this then I ever could have. The only problem I am having is that when I enter a Quantity, everything is appearing as it should on the Order Form (thanks again!) however, when I remove or change the quantities, the items on the order form are not updating. So if I put a quantity in and remove it, that item is staying on the order form. Is this an easy fix to have the Quantities update when changed?

    Even so, like I said Rudi you are awesome. Thanks for your help so far.

  5. #5
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Bring referenced Cell Values to Top of Worksheet

    Thanks for the accolades LOL

    I'll have to look into that and resolve that for you.
    I never even focused on the issue of updating an existing quantity, or deleting the quantity. I think I had too much on my plate at the time.

  6. #6
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Bring referenced Cell Values to Top of Worksheet

    Hi Pat,

    Here is the reworked file.
    Caveat: Please note that if you delete a quantity, then it must be one at a time. If you select a range of quantities to delete, ONLY the first one will delete.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Bring referenced Cell Values to Top of Worksheet

    Here is a formula solution.
    It uses Arrayed Formulas which must be entered with CNTRL SHFT ENTER instead of ENTER.
    In I4 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The others are similar.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    This can be done without the array but would require a key column. If you'd prefer that, let us know.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Registered User
    Join Date
    04-15-2014
    Location
    hell
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Bring referenced Cell Values to Top of Worksheet

    Quote Originally Posted by ChemistB View Post
    Here is a formula solution.
    It uses Arrayed Formulas which must be entered with CNTRL SHFT ENTER instead of ENTER.
    In I4 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The others are similar.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    This can be done without the array but would require a key column. If you'd prefer that, let us know.
    Order Form Conflict.xlsx

    Chemist,

    Wow, this is basically what I needed. Here is one final caviat to the original request: if I wanted to add another Worksheet with different items but have all the items with quanitites appear in the same order form- how would I adjust the formula to continue searching for quantities across other worksheets? I tried to use the IFERROR function and repeat the formula changing the Workbook names but for some reason, if I put a Qty on the other workbook but in the same Row, only the first value will show up in the order form (not subsequent worksheets with a Qty) Once again I cannot thank you enough, that formula is 99% of what I needed. I have attached another WorkBook to illustrate what I was talking about with the multiple worksheets. I edited the Formula for the first 2 rows of the
    Order Details worksheet. Both the Adv Piano and Concert Band tabs have values in the first two rows, yet on the Order Detail sheet, only the values from the Adv Piano worksheet are showing with my Formula edits. Order Form Conflict.xlsx let me know if you need any other details. Thanks!

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Bring referenced Cell Values to Top of Worksheet

    It's easy with 2 or 3 worksheets. How many are we talking about?

  10. #10
    Registered User
    Join Date
    04-15-2014
    Location
    hell
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Bring referenced Cell Values to Top of Worksheet

    There is a total of 16.. Does that make this painful for you?

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Bring referenced Cell Values to Top of Worksheet

    You could conceivably do 15 nested IFERRORs as you started to do but it's probably easier (and less memory restrictive) to create a combined sheet (I called it "Complete") and just reference your formula to that. That sheet is just pulling data from the other 16 sheets so unless you modify your range on those sheets, it will stay constant (i.e. rows 2 to 101 reference Adv Piano, 102 to 201 reference Concert Bands, etc). So once you create it, you can hide it and forget about it (unless you change your ranges in the other sheets).

    VBA is also very good with handling multiple sheets so, if this isn't what you want, maybe a variation on Rudi's solution.
    Attached Files Attached Files

+ 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. Validating repeated values, then bring the result to another cell
    By souza.eq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2013, 05:19 AM
  2. [SOLVED] Hide Columns Based on Values Referenced from Separate Worksheet
    By xkittenxx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2013, 08:35 PM
  3. Bring values in different cels in to a single cell
    By pillari in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2012, 09:20 AM
  4. Replies: 2
    Last Post: 08-22-2010, 05:15 AM
  5. Lookup cell value in referenced worksheet
    By Popa in forum Excel General
    Replies: 2
    Last Post: 06-30-2009, 10:56 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