Computer Learning Zone CLZ Access Excel Word Windows

Whatever the cost of our libraries, the price is cheap compared to that of an ignorant nation.

-Walter Cronkite
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Excel Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Recipe coster
Ed 

16 years ago
Hi, I am trying to build a spreadsheet that will give me the cost of each recipe I might want to cook. I have created fields containing each ingredients price per g (ppg) and the idea is that (ppg)*(amount used)=(cost for this ingredient within this recipe). What i need is for excel to take (price per g) and multiply it by (amount used) I am currently using =if([ingredient]=[ingredient a(from ingredient list)],[ppg a from list]*[amount used],if([ingredient]=[ingredient b],[ppg b]*[amount used], if(ingredient=[ingredient c].....

as you can see this formula is going to be quite long to write if I have a list of over 200 ingredients so I was hoping to find a more intelligent formula that can take the properties of one column in a row based on the selection of another column in that row. using F:F doesn't seem to work as it takes the row the formula is on rather that the target's I have experimented with access as well but i don't know it very well so am hoping to get somewhere with this. Thanks, Ed
 


Answer from Richard Rost:

Have you considered using VLOOKUP to get the price from a separate pricing sheet?

You can use the VLOOKUP or HLOOKUP function.

VLOOKUP is a powerful function in Microsoft Excel that allows you to look up a value from another spreadsheet - or a smaller subtable (lookup table).

See this FREE tutorial for help with VLOOKUP:

http://599cd.com/tips/excel/vlookup/?key=BlFAlEx

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Excel Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/18/2026 12:41:27 PM. PLT: 0s