![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Posts: 130
|
Thanks in advance for your help.
I have a DB: Food Item Carbs Prot Fats cereal 45 15 3 milk 20 20 1 bread 45 13 2 Then on another worksheet when someone types in "cereal" in A1, Then B1 gets "45", C1 gets "15", D1 gets "3" Database is in worksheet: database Menu is in worksheet: Nutrition Log Thank you again |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Sarasota, FL
Posts: 1,539
|
column A is food
column B is Carbs column C is Prot column D is Fat (for example) row 1 is first entry on sheet 2 in A1 put nothing in B1 use: vlookup(A1,Sheet1!A1:D4,2,False) in C1 use: vlookup(A1,Sheet1!A1:D4,3,False) etc... |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
In B1 =VLOOKUP(A1,range,2)
In C1 =VLOOKUP(A1,range,3) In D1 =VLOOKUP(A1,range,4) Column with cereal etc.. sorted |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Posts: 130
|
thanks guys!
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Apr 2002
Posts: 130
|
thanks guys!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|