+ Reply to Thread
Results 1 to 13 of 13

Using the vlookup to sort through a sheet and only return products actually ordered

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Using the vlookup to sort through a sheet and only return products actually ordered

    I have a large Item sheet that also functions as an order sheet so I want another sheet to return only items actually ordered. What is the correct vlookup formula for this situation?

    in sheet #1, Column A has the number of orders needed (to be filled in), column B has the name of the product, column C has the price of the product. I want to look through column A after it is filled in and return the value of all three columns only if column A has a value larger than 0 into sheet #2 in the same workbook.

    Thank you for any help!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    Please see attached file with orders filled on second sheet.

    Is this something you can work with?
    Attached Files Attached Files
    Last edited by AlKey; 07-20-2014 at 06:05 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    Thank you, this is what I was looking for! Sorry to all for not posting a dummy workbook, I assumed it was such a simple problem that it wasn't needed.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    You're welcome and thank you for the feedback!

  6. #6
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    I am having one issue with this, when I change the order back to zero on the ALL sheet the product name still appears on the ORDERED sheet with a zero in front of it, is there anyway of making it disappear when I change the order back to 0? By the way Alkey, your dummy workbook is exactly what I would have posted if anyone else has input, thanks for that.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    It works fine on mine sheet. When I change all orders to 0, the "Orders" sheet was cleared. Did you make any changes to the formula? Also, make sure that Calculation Options located under Formula tab on the ribbon is set to Automatic

  8. #8
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    Your sheet does work fine, I will start from scratch and figure out if I changed anything in the formula, thanks for getting back, I'll let you know how I do.

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    Just make sure when enter this formula use Ctrl+Shift+Enter key combination otherwise it is not going to work.

  10. #10
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    I found out what I did, I was adjusting the formula to fit with an extra row and I changed the Value if false part by accident, I changed it back and it worked, thank you for making me look!

  11. #11
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    This works like a dream and now I am trying to add more stuff into the equation, I want to add columns DEF from the ALL sheet (which are an extension of ABC) to add to the rows on the ORDERED sheet, can you give me some advice on how to add this to the formula?

  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    Are you talking of adding more columns to the ALL sheet? Just add columns to the sheet, there is nothing needs to be done to the formula. All you needs is to drag this formula from Column A to the right and it will pick up new columns.

  13. #13
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Using the vlookup to sort through a sheet and only return products actually ordered

    I wanted to add 3 more columns of info from ALL into a single column on ORDERED, but on average each contributing ALL column was only a 1/4 of the original data, so I spilt the first column into 4 tables and it returns all the info (unless some freakishly large order was placed in one column). It works, I was just was wondering if I could do this without visible gaps between the tables in the ORDERED sheet or should I be approaching this in a different way? The more I learn, the more I realize I don't know...

+ 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. Replies: 5
    Last Post: 04-01-2013, 08:19 AM
  2. Return Ordered Unique Values Function
    By JSimone in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-20-2011, 12:51 AM
  3. Formula to return last date an item ordered
    By ExcelJunior in forum Excel General
    Replies: 6
    Last Post: 05-17-2011, 12:37 AM
  4. how to sort data into ordered array
    By warakawa in forum Excel General
    Replies: 25
    Last Post: 10-21-2010, 06:17 PM
  5. Query for products ordered by month(s) and ytd
    By goofy78270 in forum Access Tables & Databases
    Replies: 3
    Last Post: 10-17-2009, 02:53 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