+ Reply to Thread
Results 1 to 6 of 6

Input in cell 1, output in cell 2; input in cell 2, output in cell 1

  1. #1
    Registered User
    Join Date
    05-30-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    5

    Input in cell 1, output in cell 2; input in cell 2, output in cell 1

    Hello,

    See attached spreadsheet.

    I am trying to create a scenario where I am able to input into cell B3, and output into cell D3 (B3*D2). HOWEVER, I'd also like the ability to input into cell D3 and output into cell B3 (D4/D2). Is this possible? If so, can I do it without macros/VBA. If macros/VBA is needed, can you help? I do not know macros/VBA.

    TIA!
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Input in cell 1, output in cell 2; input in cell 2, output in cell 1

    You need VBA. Right click the sheet name, select "View Code" and paste the following:

    Please Login or Register  to view this content.
    That will create a formula in B3/D3 as necessary to do the correct calculation.

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    05-30-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    5

    Re: Input in cell 1, output in cell 2; input in cell 2, output in cell 1

    This is perfect! Thank you. One more question--if I had multiple rows of the same, can I do it with the same subroutine?

  4. #4
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Input in cell 1, output in cell 2; input in cell 2, output in cell 1

    Do you mean it could be B3/D3 and then B4/D4 ... etc.?

    WBD

  5. #5
    Registered User
    Join Date
    05-30-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    5
    Quote Originally Posted by WideBoyDixon View Post
    Do you mean it could be B3/D3 and then B4/D4 ... etc.?

    WBD
    That is correct.

  6. #6
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Input in cell 1, output in cell 2; input in cell 2, output in cell 1

    Small changes to the macro then:

    Please Login or Register  to view this content.
    WBD

+ 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. Dynamic output on the same input cell
    By deepthispam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2019, 12:55 PM
  2. input cell to output format Help please
    By Ashcad124 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-03-2018, 03:37 AM
  3. [SOLVED] Check and Output Cell(s) Above/Below Input
    By Ray Storm in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 06-16-2015, 03:47 PM
  4. [SOLVED] Transferring of input from input cell to output cells
    By bebongtheshark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2014, 01:28 AM
  5. [SOLVED] Link an input to an auto output in the next cell
    By gogreenpower in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2014, 11:39 PM
  6. Excel 2007 : Same output cell as input
    By Wordsquirrel in forum Excel General
    Replies: 3
    Last Post: 08-18-2010, 03:23 PM
  7. multiple output from any cell input
    By ploeg8393 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-21-2006, 06:56 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