+ Reply to Thread
Results 1 to 4 of 4

Fat carbs protein values filling in excel

  1. #1
    Registered User
    Join Date
    07-25-2012
    Location
    Ljubljana, Slovenia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Fat carbs protein values filling in excel

    Hi,

    I am trying to set an existing spread sheet to fill in FAT CARBS PROTEIN & CALORIES values after i type in the food name.
    What i would be realy pleased is, if you could help me with formulas in excel, because im quite new in here and this is my first post and a try to do something with excel.

    Ive been spending hours and hours thinking how to do this, but havent figured out,
    and all threads on internet are realy confusing for my minimal knowledge.

    I hope my explanation aint to confused as I am, because it has been driving me crazy how to do this.

    Here is the worksheet i've been working on, and thanks to everyone that will try to help.

    made by Andrej Stanic.xlsx
    Last edited by cor3; 07-25-2012 at 08:20 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Fat carbs protein values filling in excel

    I recommend using DATA VALIDATION for a pull down list

    Use VLOOKUP to lookup the correct values
    For example to lookup the Protein value in cell C3 the formula is: =VLOOKUP($A3,'Hranilne Vrednosti Živil'!$A$2:$G$82,4,FALSE)*$B3/100

    Your spreadsheet with the correct formula for cell C3, D3, E3 and F3 (Protein, Carbs, Fats, Calories) is attached. Copy the formulas down as needed

    made by Andrej Stanic.xlsx

    NOTES: Your data is based on 100 grams, the formula I included calculates the correct value based on the grams entered. For example, if you entered 50 grams, values are one-half (50/100)


    If this soves your problem, change the title to [SOLVED] and click on the star at the bottom of this message to give feedback
    Last edited by K m; 07-25-2012 at 09:03 AM.
    Click on star (*) below if this helps

  3. #3
    Registered User
    Join Date
    07-25-2012
    Location
    Ljubljana, Slovenia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Fat carbs protein values filling in excel

    Man u dont know how thankfull i am !

    Thanks a lot, ur my savour:*

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Fat carbs protein values filling in excel

    Change the title to [SOLVED] and click on the star at the bottom of this message to give feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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