+ Reply to Thread
Results 1 to 6 of 6

Calculating two directions

Hybrid View

Chamuit Calculating two directions 09-24-2019, 04:16 PM
AliGW Re: Calculating two directions 09-24-2019, 04:24 PM
MrShorty Re: Calculating two directions 09-24-2019, 04:26 PM
Chamuit Re: Calculating two directions 09-25-2019, 05:24 PM
MrShorty Re: Calculating two directions 09-25-2019, 06:24 PM
Chamuit Re: Calculating two directions 09-26-2019, 06:10 PM
  1. #1
    Registered User
    Join Date
    05-05-2017
    Location
    Texas
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    28

    Calculating two directions

    TIA.

    I need to be able to calculate in two directions. Not sure how to describe otherwise.

    If I enter the number in the $ column then it would calculate the % or if I entered a number in the % then it would calculate the other way and populate the $ column. I've attached a sample picture.

    excel.jpg

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,275

    Re: Calculating two directions

    You’ll need VBA for this - shall I move your thread?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,462

    Re: Calculating two directions

    Spreadsheet formulas don't do this sort of "input, process, and output all in the same cell(s)" very well. If I were doing this using spreadsheet formulas/functions, I would designate a block of cells for the inputs, then have another block of cells that process and output the results. Usually, the output block has formulas similar to =IF(ISBLANK(A2),formula to calculate result,A2)

    If you absolutely must have the input and output in the same cells, you will likely need to use VBA (or other programming language) to read the input data, determine which quantities need to be calculated, calculate those values, then write the results back into the spreadsheet.

    We can help you with either approach you would like to take.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    05-05-2017
    Location
    Texas
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    28

    Re: Calculating two directions

    I don't know VBA. I'll leave this here.

    Could I have the first column be a value (whether $ or %), then the second column be a pulldown menu of $ or %, the third column would show the reverse % or $?

    Then, how could I sum the amounts both $ and % in separate columns?

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,462

    Re: Calculating two directions

    I tend to be optimistic that most things are possible with enough time, effort, and ingenuity. So, I am optimistic that we could figure something out where you have a column for inputs, a column for "type of input", and a third column for outputs. Your screenshot in the OP does not say anything about how the various values/percents are intertwined. I expect that the hardest part of the problem is figuring out the algebra of the problem -- untangling the different quantities/percents in the different possible input combinations. This is more algebra than programming. Once the algebra is done, then it will be a matter of programming the resulting algebra expressions into appropriate decision making (IF()) functions to put it all together.

  6. #6
    Registered User
    Join Date
    05-05-2017
    Location
    Texas
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    28

    Re: Calculating two directions

    Here's my first run at it. I basically made two "sides" which allows for side by side comparison. I am thinking I need to lock the formulas so they don't get changed accidentally.
    Attached Files Attached Files

+ 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] Two Directions Duplicates
    By m_alagha in forum Excel General
    Replies: 6
    Last Post: 09-01-2013, 10:50 AM
  2. Sorting Data in different directions
    By Flower R in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2009, 10:49 AM
  3. using a different way of cell directions
    By Hein in forum Excel General
    Replies: 7
    Last Post: 01-21-2009, 08:13 AM
  4. Looking for Directions
    By johnpn10 in forum Excel General
    Replies: 2
    Last Post: 05-03-2008, 07:20 PM
  5. Linking cells in two directions
    By MattiasLindholm in forum Excel General
    Replies: 1
    Last Post: 03-14-2007, 12:03 PM
  6. [SOLVED] Lookup 2 directions
    By Tony in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2006, 11:15 PM
  7. Two directions in Step
    By hotherps in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2005, 01:49 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