+ Reply to Thread
Results 1 to 12 of 12

how to reverse the results of input ??

  1. #1
    Registered User
    Join Date
    08-22-2016
    Location
    London
    MS-Off Ver
    Office for Mac 2016
    Posts
    12

    how to reverse the results of input ??

    Sorry, that's probably not the best description in the title!

    Screen Shot 2016-08-29 at 10.53.13.png

    I've created the above workbook so that when I input weight in stones/lbs (C6/D6) the result is converted into KG (E6) and the same applies to height, from feet and inches into CM. The results are then transferred into J4 and J5 respectively using e.g. =E6 and these results are used to manipulate the rest of the workbook.

    Is there a way that if I were to input the date in KG or CM into cell E6 or E10, then that could reverse calculate so that the correct weight/height appears in C6/D6 and C10/D10 in Stones and feet.

    Also, at the moment, if I input the weight and height manually into E6 or E10 in KG or CM, then the formula I have used for the converstion from Stones and Feet is lost and replaced by the figure I have just input???

    Thanks in advance!

  2. #2
    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,460

    Re: how to reverse the results of input ??

    An image is impossible to work with! Please attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Bear in mind that you can only have either manual input or a formula in any one cell, not both. There may be a way to do this with a formula, though.
    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.

  3. #3
    Registered User
    Join Date
    08-22-2016
    Location
    London
    MS-Off Ver
    Office for Mac 2016
    Posts
    12

    Re: how to reverse the results of input ??

    Thanks Ali,

    I have attempted to upload a copy of the workbook. I think all of the information you need is in my previos post. Thanks for your answer re having only manual input OR formula in a cell, that makes sense now!
    Attached Files Attached Files

  4. #4
    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,460

    Re: how to reverse the results of input ??

    I think I can see a possible way of getting round this, but first, could you please tell me what the reverse calculations would look like as a formula? Sorry - I'm not particularly good at weights and measures!

  5. #5
    Registered User
    Join Date
    08-22-2016
    Location
    London
    MS-Off Ver
    Office for Mac 2016
    Posts
    12

    Re: how to reverse the results of input ??

    That's going to be difficult as I've worked the weight formula between 2 cells (stones and pounds). So if I were to input in kg, I wouldn't know how to formula the result across two cells again. if it helps there are 2.2046 lbs per kg and 14 lbs per stone haha

    I have found this with regard to the same issue I have with the reversal of the height input, maybe it will help, Although I only need to the nearest inch, not 1/8 inch...


    If you want FEET AND INCHES (which neither of the other solutions address), one way:

    Assume that your cm values are in column A, cells A1...Axxx.

    In B1, enter

    =INT(ROUND(A1 / 2.54 *8, 0) / 96)

    to get feet. In an adjacent column, enter

    =ROUND((A1 / 2.54 - B1 * 12) * 8,0) / 8

    to get inches to the nearest 1/8". Copy B1:C1 down as far as required.

  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,460

    Re: how to reverse the results of input ??

    Here's the genesis of an idea - what do you think? The yellow cells become input only. Can you work with something like this? Sorry, I didn't wait for your conversion formulae!!!

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    1
    2
    3
    Input your data below Male
    4
    Weight Weight (kg)
    94
    kg 14st 12lbs
    5
    st
    lbs
    kg
    Height (cm)
    183
    cm
    6
    14
    12
    94
    Age (years)
    36.75
    years
    7
    8
    Height BMR Base Value
    2019
    9
    feet
    inches
    cm
    10
    6
    0
    183
    Activity Level Multiplier (Harris Benedict)
    11
    1
    No exercise
    2423
    kcal
    12
    Activity Level (drop down)
    2
    Light exercise (1-3 days/week)
    2776
    kcal
    13
    3
    3
    Moderate exercise (3-5 days/week)
    3129
    kcal
    14
    4
    Heavy exercise (6-7 days/week)
    3483
    kcal
    15
    Age
    5
    Very heavy exercise (2x per day)
    3836
    kcal
    16
    36.8
    17
    BMR maintanence value
    3129
    kcal
    18
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    J
    K
    L
    M
    N
    4
    =IF(E6<>"",E6,ROUND((C6*14+D6)*0.4536,0))
    kg =INT((J4/0.4536)/14)&"st" =ROUNDUP((((J4/0.4536)/14)-INT((J4/0.4536)/14))*14,0)&"lbs"
    5
    =IF(E10<>"",E10,ROUND(2.54*(C10*12+D10),0))
    cm
    Sheet: Sheet1

  7. #7
    Registered User
    Join Date
    08-22-2016
    Location
    London
    MS-Off Ver
    Office for Mac 2016
    Posts
    12

    Re: how to reverse the results of input ??

    I like it! I think that would be much cleaner to have input only too. However the actual conversion figure you have displayed in the example L4 and M4 are redundant, so those columns are not necessary in the workbook. The formula I'm using to calculate calories works from kg only.

    I'm guessing the same could be done with the height?? C10, D10 and E10 in your example.

  8. #8
    Registered User
    Join Date
    08-22-2016
    Location
    London
    MS-Off Ver
    Office for Mac 2016
    Posts
    12

    Re: how to reverse the results of input ??

    I see you've already done it !

  9. #9
    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,460

    Re: how to reverse the results of input ??

    I put L and M in there because I thought you wanted anyone using the form to see what the equivalent in 'old money' would be. Yes, the same can be done with height, but I think you may well be able to adapt what I've given you to do that bit yourself. If not, just shout!

  10. #10
    Registered User
    Join Date
    08-22-2016
    Location
    London
    MS-Off Ver
    Office for Mac 2016
    Posts
    12

    Re: how to reverse the results of input ??

    It's perfect. Thanks so much!!

  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,460

    Re: how to reverse the results of input ??

    Great - glad to hear it!

  12. #12
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: how to reverse the results of input ??

    Just for further information take a look at the CONVERT function, you may find it useful. See link:

    http://www.excelfunctions.net/Excel-...-Function.html

    DBY

+ 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] How do I reverse the input locatuion in this macro?
    By Mr.GfCs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2016, 05:04 PM
  2. [SOLVED] Input box to search and results in a new worksheet
    By Ashley1993 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-02-2014, 09:42 AM
  3. [SOLVED] VLookup - reverse wild cards, strange results, reformatting advice
    By Glaukopisignari in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2012, 08:05 PM
  4. [SOLVED] Reverse Vlookup multiple results if isnumber?
    By Jmarsh4 in forum Excel General
    Replies: 2
    Last Post: 05-13-2010, 04:54 PM
  5. Limiting results of capture input
    By dextras in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2009, 05:35 PM
  6. Input Box giving incorrect results
    By jamesryan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2009, 07:31 AM
  7. Display COUNTIF results in reverse order
    By kn427 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2008, 10:36 AM

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