+ Reply to Thread
Results 1 to 4 of 4

Generate information through one click... "LOOKUP"

  1. #1
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Exclamation Generate information through one click... "LOOKUP"

    Hello all...
    i have been searching and trying to figure out something but i cant help myself.
    I have thousands of data and i need to select the one of the product and it should display the entire information on that product automatically.
    I tried Vlookup, but it proved useless for my this problem... i am new to excel, learning, dont know much functions but i am desperate to solve my problems..
    I have attached the file, please download it and give me a solution for it...
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Generate information through one click... "LOOKUP"

    Put this formula in H2 of Sheet1:

    =IF(A2="","-",A2&"_"&COUNTIF(A$2:A2,A2))

    then copy down to the bottom of your data, or beyond to allow for new data to be added.

    Then put this formula in A7 of the Display sheet:

    =IFERROR(MATCH(D$3&"_"&ROWS($1:1),Sheet1!H:H,0),"-")

    and this one in B7:

    =IF(OR($A7="-",$A7=""),"",INDEX(Sheet1!B:B,$A7))

    Copy this formula across to G7, then apply a date format to D7 and a number format to E7, and then copy all the formulae from A7~;G7 down as far as you need them. If you put this formula in E3:

    =COUNTIF(Sheet1!A:A,D3)

    it will tell you how many records to expect for the Product you have chosen in D3.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Generate information through one click... "LOOKUP"


    Thank you so much pete... it really worked, I tried to do vlookup, index but nothing helped and my head was numb.. can you explain me the formula you described above??. i will add a reputation and yeah, thanks again...
    Hope to get a help from you in future..
    Last edited by meus; 11-30-2014 at 12:27 AM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Generate information through one click... "LOOKUP"

    Thanks for the rep.

    The first formula adds a unique sequential number onto the end of the product name. The second formula recreates those sequential numbers (through the ROWS($1:1) term as it is copied down) along with the product name chosen in D3, and looks to see if there is a match in column H of Sheet1 - if there is, it will return the row number where the match occurs. The third formula returns the corresponding data from column B of Sheet1, but when it is copied across it will get the data from column C, then column D, and so on.

    Hope this helps.

    Pete

+ 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. Toggle BackColor of labels in Userform through "click" and "double-click"
    By ahmerjaved in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 02:08 PM
  2. Difference between manual "click" of activeX checkbox and coded "click"
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-23-2012, 10:51 AM
  3. [SOLVED] Disable "Right Click" ... or any ability to "cut", "insert", etc.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2011, 09:26 AM
  4. Replies: 8
    Last Post: 01-04-2006, 12:10 PM
  5. [SOLVED] can i delete "lookup" from right-click in excel 2003?
    By aarria in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2005, 02:06 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