+ Reply to Thread
Results 1 to 8 of 8

Calorie Counter

Hybrid View

  1. #1
    Registered User
    Join Date
    04-25-2005
    Location
    Houston, TX
    MS-Off Ver
    Excel 365
    Posts
    8

    Calorie Counter

    Im creating a a spreadsheet to track daily nutritional information. It is my first one.
    On the first sheet I have info on various foods as I come across them. On subsequent sheets I input what I eat daily & it autosums the calories, protein, etc.
    What I would like to do, is have it so that I can just type in the food, ie banana, & it will automatically take the values from the first page & input it into subsequent sheets, so that i do not have to re-type or copy paste.
    thanks
    S.

  2. #2
    Forum Contributor
    Join Date
    04-11-2005
    Location
    London
    Posts
    259
    The Syntax is
    =Sheet1!A1
    etc.

  3. #3
    Forum Contributor
    Join Date
    04-11-2005
    Location
    London
    Posts
    259
    A useful tip for typing in multiple sheets simultaneously is to "<Control> and <Click>" all of the sheets you wish to type on and the type on. Start typing and you'll find that whatever you've typed is now on EVERY sheet. Remember to deselect the multiple sheets when you've finished though.
    Last edited by MartinShort; 04-25-2005 at 09:08 AM.

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I don't think Martin addressed the OP's question. It sounds as if they need a VLOOKUP. On Sheet1, make sure your data is laid out in the following format:

    Col A is the item (e.g. Banana)
    Col B is Calories
    Col C is Protien
    and so on

    This range of data must be sorted Ascending by Column A. Name this range of data "Foods" (or similar)

    Now, on Sheet2, set up columns the same order as Sheet1

    Use Column A to enter your foods eaten.

    Assuming your first entry is in A2, in B2 enter this formula:

    =VLOOKUP($A2,Foods,2,0)

    In C2 enter this:

    =VLOOKUP($A2,Foods,3,0) note that the column reference '2' changed to '3'

    repeat this formula in as many columns as you have data in your Foods range, adjusting the reference number to match the column number (B is col 2, C is col 3, etc.)

    Then, copy these formulas down through as many rows as you need.

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  5. #5
    Forum Contributor
    Join Date
    04-11-2005
    Location
    London
    Posts
    259
    Ho hum. Perhaps if I'd read the question a bit more thoroughly. Ce la vie

  6. #6
    Registered User
    Join Date
    04-25-2005
    Location
    Houston, TX
    MS-Off Ver
    Excel 365
    Posts
    8
    ok bruce i think i got it.
    ill give it a try & let you know how it works out

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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