+ Reply to Thread
Results 1 to 16 of 16

Vlookup Issues

  1. #1
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Vlookup Issues

    Good afternoon all,

    Im trying to find a function (Currently thinking that Vlookup is the way to go) to search through Column H and for each cell that has a value greater than 0, return Column B of that cell. Ive got ~9000 rows, and only 1-50 will be greater than 0, and I'd like for them to be listed right next to eachother (no row gaps between them); im not sure if that is done automatically or not.
    Last edited by Sky188; 06-10-2013 at 11:45 AM.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup Issues

    this should work.....you may have set your variables because I don't know where you want to place the data....

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup Issues

    I placed the output data in Column I (9)....if you want to change that, change the 9 to whatever number column you would like....HTH

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Vlookup Issues

    Just use XL's filter

  5. #5
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Vlookup Issues

    Thanks for your responses.
    Judgeh59, Im looking for something that automatically updates when values are changed (Im not too great at excel, and to me something with a Sub means a macro that needs to be run).
    Arthurbr, I cant just use the filters because I need the positioning to stay the same. My ultimate purpose is for the user to go down a list of 9000 items, select which ones they want by entering a price, and have a full list at the very bottom of just the products they added a price to.

  6. #6
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Vlookup Issues

    Here is what is currently on my mind, and im sure im making this more complicated than it needs to be. Im thinking about adding a number scheme to a random cell in a row, and if the price is greater than 0 in that row, the number scheme will increase, and I will then do a vlookup on that number scheme. However, I get the feeling this will involve many very annoying IF statements.

  7. #7
    Registered User
    Join Date
    06-06-2013
    Location
    Louisville, Kentucky (U.S)
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Vlookup Issues

    Example File.xlsxHello Brilliant minds! I am new to this forum but very excited to be here.

    I am not sure how to start a new Forum/Question so I thought I would pose my question here.

    I am trying to use Sum a VLOOKUP where Table has multiple values that = the ONE lOOKUPVALUE.

    This is a very complex spreadsheet but I simplified the results in an easy to ready simple spreadsheet.

    Please see attached document.

    Any help is greatly appreciated!

    Have a wonderful day.

  8. #8
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Vlookup Issues

    Zsalem,

    I'd be happy to attempt to help while im in the excel thinking mood; to post your own thread, you go into a forum (such as the VBA), then click the big "Start new Thread" button at the top left; one of the forum rules is to start your own thread, so one of the main members of the forum will probably come in, delete your question and tell you to go to your own. Until then, can you try to explain your sheet a bit more clearly?

  9. #9
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup Issues

    @sky188 --- a macro can be setup to launch automatically if a cell is changed in a certain columns --- would that work?....

  10. #10
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Vlookup Issues

    I can see that working. Ill prepare a quick test-file to show exactly what im looking at, and ill post it momentarily. Zsalem, see attached file (this is what I was understanding from what I read).
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Vlookup Issues

    So, to explain this attachment, In column C I have all of my products, and in column E I have prices entered by the user, and for products they aren't pricing, they leave it alone. At the bottom, I want a straight list of the products that have prices.
    Attached Files Attached Files

  12. #12
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup Issues

    Great file....thanks.....I have it working but I moved some stuff around....if this doesn't work let me know and I can tweek the code....the macro must be placed in the Sheet1...See Attached
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Vlookup Issues

    judgeh59, your example does exactly what im looking for, though im hoping for something that is updated automatically (and im personally not aware of a way to do that with vba code without slowing the sheet down significantly)

  14. #14
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Vlookup Issues

    I managed to solve my issue by using the MAX function. My final function is: =IF(H7="",$A$3,IF(H7=H3,MAX($A$1:A4),MAX($A$1:A4)+1)); to spell it out, if the price = 0, return a preset value of 0, if the price isn't 0, run an if function that says "if the price is the same as the previous price, use the max function to return the highest number in the column (which would be returned by the previous price, thus having them be the same number), and if the price isnt the same as the previous price, use the max function to find the highest number in the column before the cell, and add 1. Then I just used vlookup at the bottom of the page to look for the numbers 1-50.

    The only issue I still have is the vlookup wont work if there are multiple items with the same price (which isn't a crazy huge issue for me personally).

  15. #15
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup Issues

    that's always fun to figure it out on your own....sorry I couldn't help...

  16. #16
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Vlookup Issues

    thanks for the kind Rep Bump

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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