+ Reply to Thread
Results 1 to 9 of 9

Can I use the active cell as an input to a formula?

  1. #1
    Registered User
    Join Date
    09-30-2012
    Location
    Tel-Aviv
    MS-Off Ver
    Excel 2010
    Posts
    84

    Can I use the active cell as an input to a formula?

    Hi all,

    I was wondering if I can use the active cell, by that I mean the cell that is "highlighted" at a given time with the square border after there was a mouse click there, as an argument in a function.

    For example, I have created a table with weighted averages with 3 weights: w1 is given in the column headers (kindly see attached file), w2 in the row headers, and w3 which complements w1 and w2 to 1.

    What I'd like to do is have cells outside the table show the weights the average got when a cell in the table is selected.

    For example:
    pic_for_question.PNG

    Here we see the cell K12 is active,
    and for K12 w1=0.2, w2=0.15, and so, the cells in the weights tables above (rows 3-4) get the appropriate values according to the weights in the active cell.
    (of course I manually created this one for illustration purposes)

    Is there a way to do that? Preferably without VBA if possible
    Couldn't find anything very useful...

    Thanks in advance!
    A

    question_active_cell.xlsx

    (the values inside the table are random values...)
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Can I use the active cell as an input to a formula?

    I don't think it's possible without VBA but on the positive side - it's very simple code
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    09-30-2012
    Location
    Tel-Aviv
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: Can I use the active cell as an input to a formula?

    I would love it if you could show me how to do it with VBA...

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Can I use the active cell as an input to a formula?

    Ex1.xlsm






    Thats' a simple example... go to sheet 1 and activate a simple macro by selecting a cell

  5. #5
    Registered User
    Join Date
    09-30-2012
    Location
    Tel-Aviv
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: Can I use the active cell as an input to a formula?

    can u please show it in a formula instead of a pop up message?
    tnx

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Can I use the active cell as an input to a formula?

    That isn't a "pop up message" it is an Macro enabled Excel file. Click on it to download it.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Registered User
    Join Date
    09-30-2012
    Location
    Tel-Aviv
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: Can I use the active cell as an input to a formula?

    I mean in the file itself.... when i select a cell a pop up comes on,
    I'd like to see how the active cell can be used inside a formula.

  8. #8
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Can I use the active cell as an input to a formula?

    I'm not sure exactly what you need.. The macro demonstrates that excel can capture and respond to cell selections - what's done after is all within the macro which is virtually limitless apart from high speed graphics

  9. #9
    Registered User
    Join Date
    09-30-2012
    Location
    Tel-Aviv
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: Can I use the active cell as an input to a formula?

    Would be amazing if you could take a look at the files I attached to the original post (excel file & pic). Basically I want the value of the active cell to be an input in a formula (given in a different cell)

+ 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. [SOLVED] Use data from input box into a formula and show result in active cell
    By Abhi1687 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-13-2013, 05:35 PM
  2. [SOLVED] Input Box to determine active Cell Within Macro
    By dieseldogpi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2012, 09:16 AM
  3. Input data into different cell in Active Row
    By Cubical in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2011, 03:08 PM
  4. accept input and move active cell?
    By JR Hester in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2006, 11:50 AM
  5. [SOLVED] Input mask for active cell
    By Lee Hunter in forum Excel General
    Replies: 2
    Last Post: 01-25-2006, 05:00 PM

Tags for this Thread

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