+ Reply to Thread
Results 1 to 6 of 6

One cell and different formulas to display different data [VBA EXCEL 2007]

  1. #1
    Registered User
    Join Date
    04-21-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    One cell and different formulas to display different data [VBA EXCEL 2007]

    Hello everyone.

    The idea is to enter articles numbers in to column A and run macro which will show me in the same cells data taken from vlookup.
    I wish to make a few buttons for few macros. Each macro will replace article number with different vlookup value.

    Is it possible to get vlookup result for "lookup_value" placed in the same cell?


    A1 = 12345678
    after macro
    A1 = vlookup(12345678,table_array,column,FALSE)

    Any clue? I will try to customize it to my spreadsheet.

    I really appreciate all the help you gave me.

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: One cell and different formulas to display different data [VBA EXCEL 2007]

    Why do you want to do this? You are making an easy task hard. Juat put your formula in a column next to your article numbers

  3. #3
    Registered User
    Join Date
    04-21-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: One cell and different formulas to display different data [VBA EXCEL 2007]

    This is more complicated.
    I have got a map of articles on my shop floor. Articles numbers are entered in to some merged cells.

    Image1.jpg

    I wish to see different data (names, stock quantity, sales figures, etc,...) using few macro buttons.
    Everything is working great but on separate sheets.

    Image11.jpg

    I am trying to make one map with all the information.

    Is it possible?

  4. #4
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: One cell and different formulas to display different data [VBA EXCEL 2007]

    I can't read the image files as they are too small.

  5. #5
    Registered User
    Join Date
    04-21-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: One cell and different formulas to display different data [VBA EXCEL 2007]

    I have attached file for easier understanding.

    I am fine to stay with a sheet contains a map with articles numbers. And additional sheet where i can switch different views.MAP.xlsm

  6. #6
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: One cell and different formulas to display different data [VBA EXCEL 2007]

    Try this

    Please Login or Register  to view this content.

+ 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