+ Reply to Thread
Results 1 to 9 of 9

Converting food measurements from US UK to Metric (Aus)

Hybrid View

  1. #1
    Registered User
    Join Date
    08-13-2020
    Location
    Melnbourne Australia
    MS-Off Ver
    365
    Posts
    2

    Converting food measurements from US UK to Metric (Aus)

    Hi, I am writing a scaling recipe workbook that converts US UK measures to metrics (Aus). The formula to convert the measures works.

    IF($J11="Eggs",$AA11/12,($AA11*XLOOKUP($H11,rngRecipeMeasure,Conversion_Factor,$H11,0))) ` this works

    But I also want to convert "each" eggs to dozen if there are more than 12 eggs

    can I combine the 2 formulae and if there is another measure bring that up or another "each" and leave it as each.

    I am stuck
    Happy to upload the file I am not precious about the file it is there to be used

    Zaida
    I have uploaded the file and thanks for the excel version error I am using 365
    Attached Files Attached Files
    Last edited by Zaida; 04-21-2022 at 05:53 AM. Reason: uploading the file

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Converting food measurements from US UK to Metric (Aus)

    It would probably help if you uploaded that file, and be sure to show some examples of expected outcomes
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Converting food measurements from US UK to Metric (Aus)

    I saw you use XLOOKUP function , but your profile say you use Excel 2016.
    Please update your profile if needed.

    Regards.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Converting food measurements from US UK to Metric (Aus)

    Not clear what is expected.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Converting food measurements from US UK to Metric (Aus)

    Hi Zaida, welcome to the forum.

    Firstly if it helps, Excel has a built in function CONVERT which may make your life a bit easier if you have to convert between units a lot. I don't know if it includes all the units you want and it sounds like you have that bit working, so no need to change anything in this sheet.

    For your actual question, it's not really clear what you want to end up with. e.g. if there are:

    6 eggs - should output be 6 Eggs, 6 Each, or 0.5 Dozen? I'm not clear
    12 eggs - 1 Dozen, this is clear
    18 eggs - 1.5 Dozen, or 1 Dozen 6 Eggs, or 1 Dozen 6 Each? Not clear

    And any other permutations I've not thought of. It would be useful if you could clarify what's expected.

    This might be what you want in AC11 of the "Pumpkin Soup" sheet, if I've understood your sheet correctly, but depending on the answers to the above it might not.

    =IF(AND($AB11>=1,$J11="Eggs"),"Dozen",$X11)

  6. #6
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,141

    Re: Converting food measurements from US UK to Metric (Aus)

    suggestion (not a solution) based on my experience in recipe cost control and analysis (including volume-to-weight analysis of about 3500 ingredients)

    you can not have a volume (eg. tablespoon) convert universally to a weight (eg. gm)... it is an impossibility because different foods have different densities.

    hint: a tonne of feathers weighs the same as a tonne of lead... but they do not occupy the same space.

    the only way to do this is to test foods repeatedly to get an average, and then have different weights by volume for each ingredient.

    EDIT:

    by the way, an Australian teaspoon is 5ml, and a Australian Tablespoon is 20 ml.
    Last edited by janmorris; 04-21-2022 at 08:58 AM.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  7. #7
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Converting food measurements from US UK to Metric (Aus)

    it will be more clear and eazy for you , if you build conversion unit table then use Index/Match to select conversion factor to multiply with original value.

    (No need to convert all , for sample no need to convert KG to Liters)

    Regards.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-13-2020
    Location
    Melnbourne Australia
    MS-Off Ver
    365
    Posts
    2

    Re: Converting food measurements from US UK to Metric (Aus)

    Sorry I am new to this asking for help request. What i am trying to do is
    1) calculate the conversion of standard measures which I believe I have done.
    2) once I have converted the measure I wish to reduce anything over 1000 to ml or kg depending on if it is liquid or mass
    3) when it comes to eggs which in a small recipe is measured as each, I was hoping to convert a large than 12 amount to dozen it doesn't have to be 1 doz 6 eggs it can be 1.5 doz.
    4) there are many other eachs in food so these each I wish to leave as each.
    I know this could be done in VBA but I am not so great at that yet and formulae are easier for me at this stage.
    Also when it comes to certain ingredients that are measured in cups I have an extensive list of the different cup measure weight which I could do in index match or xlookup
    the dilemma is how do I create a recipe conversion with all these parameters?
    I hope this clarifies what I am attempting to do. thankyou to those trying to help

  9. #9
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,141

    Re: Converting food measurements from US UK to Metric (Aus)

    the dilemma is how do I create a recipe conversion with all these parameters?
    as you are in Melbourne, you might want to take a look at the free "Resort Recipe" software from Resort Software (a Brisbane based company): https://www.resortsoftware.com/products/default.aspx

    personally i have never used their free version, i only have experience with their flagship product (Resort Executive), but their free version might help you to envisage how to structure your spreadsheet.

+ 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. Replies: 5
    Last Post: 08-23-2019, 03:14 AM
  2. need help building a food web.
    By Sezra in forum Excel General
    Replies: 3
    Last Post: 10-17-2014, 01:30 PM
  3. Help with food question
    By richardwedamins in forum Excel General
    Replies: 1
    Last Post: 05-16-2012, 06:05 PM
  4. Converting metric to imperial measurements
    By mdoyle13 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-16-2012, 03:58 AM
  5. function to change metric measurements
    By devo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-07-2006, 06:10 AM
  6. [SOLVED] What is the Formula to Convert Imperial to Metric Measurements
    By compu_trainer in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-06-2005, 03:05 AM
  7. Metric to imperial measurements
    By Gill.star in forum Excel General
    Replies: 7
    Last Post: 03-06-2005, 10:06 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