+ Reply to Thread
Results 1 to 19 of 19

Calculator with inputs & outputs in same cells

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Calculator with inputs & outputs in same cells

    Hi.

    This one is hard to explain but I'd imagine maybe not too hard to do.

    In the attached file, I want to allow the user to write either the sodium or salt percentage for each ingredient 1-5, depending on what is listed on the package, and for the "grams" columns to take into account those numbers and calculate an equal number of grams of each ingredient necessary to achieve the salt percentage put in at the top. BUT!, I'd like the user to also be able to adjust the amount of grams of any particular ingredient such where say they want to add 50g of salt, then the MSG and ingts 1-5 would all be adjusted to equal amounts of the remainder, and so on.

    I hope this makes sense.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Calculator with inputs & outputs in same cells

    I'm sorry, but I don't understand what you're asking for. In your sample file, please point out the specific area that represents your desired outcome and explain why.
    Quang PT

  3. #3
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Calculator with inputs & outputs in same cells

    Thanks for the reply! Here is the updated file with instructions.
    Attached Files Attached Files

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Calculator with inputs & outputs in same cells

    This request seems to exceed my capabilities. I will seek assistance from the community for help.

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Calculator with inputs & outputs in same cells

    It would be helpful if you can show how changing 19.08g of MSG to 10g changes 6.05g of Salt to 7.09g.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Calculator with inputs & outputs in same cells

    This will require VBA - you cannot have both manual entry AND a formula in the same cell.

    Shall I move this to the VBA section for you?
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Calculator with inputs & outputs in same cells

    Yes please!

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Calculator with inputs & outputs in same cells

    And can you please reply to post #5.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Calculator with inputs & outputs in same cells

    I just made that number up as a placeholder. I didn't do the actual math.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Calculator with inputs & outputs in same cells

    So I (and others) wasted time trying to understand the logic behind some fictitious data
    Last edited by JohnTopley; 06-20-2023 at 11:09 AM.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Calculator with inputs & outputs in same cells

    I just made that number up as a placeholder. I didn't do the actual math.
    That's REALLY bad form. Don't do that again!

    I am moving this to the VBA section.

  12. #12
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Calculator with inputs & outputs in same cells

    I'm very sorry. I didn't mean for anyone to bother with the math itself. That I can do. My questions were Excel related questions.

    -In fermenting you want at least 2% salt but sometimes more.
    -But it is actually the *sodium* that you are looking for.
    -The amount of sodium in salt is 38.8%, so it could be more accurately said that you want a minimum of 0.776% sodium in a fermentation.
    -Since I like to use different sodium sources, I want to make a calculator that can tell me how much of each I can add to achieve my desired sodium level (salt equivalent).
    -But, I sometimes I know I want to add a specific amount of a particular ingredient, so I'd like to input that and have the rest recalculate accordingly.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Calculator with inputs & outputs in same cells

    As I said above, this is now in the VBA section, but I fail to see how it could be done without the maths behind it.

    NEVER share dummy data that doesn't actually work.

  14. #14
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Calculator with inputs & outputs in same cells

    Hi AliGW, it was perhaps bad form because I know not of Excel form. Sorry about that.

    Sorry to all. In an attempt to re-endear myself, please enjoy this Excel-related joke I saw the other day:

    Some see the glass as 1/2 full.
    Some see the glass as 1/2 empty.
    Excel sees the glass as January 1st.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Calculator with inputs & outputs in same cells

    By the way, are you still using Excel 2003?

    The same courtesies are universally expected, not just here. Maybe it just didn't occur to you that your helpers would assume that the dummy data was coherent? Well, you know now. Apology accepted, but the joke is old hat (and it was always bad, anyway).

  16. #16
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Calculator with inputs & outputs in same cells

    AliGW I again acknowledge that the 'dummy data' was unhelpful. Though my question had to do with the programming of the cells and not the numbers themselves.

    You are objectively wrong about the quality of that joke, insofar as such a thing can be objective.

    Sean

  17. #17
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Calculator with inputs & outputs in same cells

    Here is an updated version of the spreadsheet
    Attached Files Attached Files

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Calculator with inputs & outputs in same cells

    You are objectively wrong about the quality of that joke, insofar as such a thing can be objective.
    Unfortunately it doesn't work in the UK (because we work with dd/mm not m/d), but you've got it wrong, anyway. 1/2 is seen by Excel as January 2nd.

    Thanks for updating the workbook.

  19. #19
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Calculator with inputs & outputs in same cells

    Honestly, up until now, I still don't understand the logic behind your problem. Could you please share what exactly you're trying to achieve in practice? If possible, let's start from scratch and try to provide an example that is closely related to the community.

+ 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. Cells that can be inputs or outputs
    By shawnamillion in forum Excel General
    Replies: 2
    Last Post: 02-11-2016, 11:58 PM
  2. [SOLVED] how to have multiple inputs and outputs?
    By Sticky_Frogg in forum Outlook Formatting & Functions
    Replies: 4
    Last Post: 07-22-2015, 12:51 PM
  3. [SOLVED] Need help with description outputs and inputs cells in workbook
    By Dangi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2014, 11:29 AM
  4. [SOLVED] Getting different formula outputs for different given inputs
    By Jay Pee in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-12-2013, 04:19 AM
  5. IF with multiple inputs and outputs
    By zdej in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2013, 05:52 PM
  6. Assigning Inputs to Outputs
    By rajiv_jolly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2012, 05:33 PM
  7. Help with multiple inputs and outputs
    By FinanceGuy in forum Excel General
    Replies: 1
    Last Post: 04-28-2010, 10:04 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