| | |||||||
| Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Senior Member Join Date: Nov 2006 Location: Olympia, Washington
Posts: 462
|
Hey guys I'm trying to keep track of calories, and some other food related stuff. In excel, is there a way I could type in something in one cell (like egg) and it would automatically fill in the next 4 or 5 columns (calories, fat content, exc) that I had entered previously? It would seem like there would be a way to do that. Erock |
| | |
| | #2 (permalink) |
| Senior Member Join Date: Nov 2006 Location: Cheshire, UK
Posts: 265
|
I've got one idea of how to do it, although I'm sure someone else could come up with something far more elegant. I'm not exactly a spreadsheet kind of guy. In each of the extra cells, have a formula that runs something like "If that cell is "Egg," then this cell must be (so and so) calories." The problem then is that you'd have so, so many checks in each of those columns, 'cause you'd have to do one check per food item that you want remembered. Like I say, it'll get it done, but it's a very clunky solution. Surely some other member could do it better? |
| | |
| | #3 (permalink) |
| Senior Member Join Date: Nov 2006
Posts: 114
|
Yes it can be done and from what I read of your request I see two options: 1) For each food item you track you would need to know what the calories, fat content, etc are for each item. These attributes would need to be stored in another excel sheet or database. When you enter the values in one column then the attribute cells are automatically populated. 2) If the percentages for each food attribute is constant then you would enter a formula in the calories, fat content, etc columns based on percentage of total calories. Enter one number and the other columns would automatically populate. It shouldn't be difficult if your information is constant and doesn't require a lot of lookups or calculations Excel programming and development is a hobby of mine. let me know if I can be of further assistance. |
| | |
| | #5 (permalink) |
| Senior Member Join Date: Nov 2006 Location: Ballarat, Victoria, Australia
Posts: 287
|
Well.... You could have a pre-defined set of values in one sheet (Sheet1) and the dynamic value list in another (Sheet2). What you could do is list all the calories, fat content etc. for each item of food you intend to use in sheet1 and use a lookup based on what you type into sheet2. This might help explain.... ![]() It is a simple task that you want to do, but it is not an easy concept to explain. Try this.... Excel: Lookup Function |
| | |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Speed dating: How do you answer the question: What do you do? | Horizon'sEdge | Social & Relationships | 17 | 02-06-2010 02:25 PM |
| Question about Christianity | Nelson | Spirituality, Consciousness, & Awareness | 24 | 10-06-2007 05:38 PM |
| A Question - and Hello! | Kura Ookami | General & Introductions | 2 | 09-01-2007 03:12 PM |
| self employment taxes question.... | VetTechJess | Business & Financial | 0 | 06-06-2007 10:08 PM |
| Getting organised using Excel spreadsheet? | Fusebox | Personal Effectiveness | 6 | 02-15-2007 04:50 PM |
All times are GMT. The time now is 12:06 PM.





