Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default How to do if/then formula with multiple scenarios.

I have a product list within the spreasheet. Product #15-6 (cell A1) costs $5
(cell A2), product #16-9 (cell B1) costs $10 (cell B2), and so on. In
another part of the spreadsheet, when I type 16-9, I want the cell next to it
to automatically enter $10. I would need an elaborate if/then formula. Like
if cell D7=A1, then A2, if D7=B1, then B2, if D7=C1, then C2 and so on for
about 9 items. So whatever item number I type in cell D7, then cell D8 will
automatically place the appropriate price there.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default How to do if/then formula with multiple scenarios.

You can only have 7 nested IF functions. To do what you want to do, you
would need to create a lookup table and use the VLOOKUP function.
Information on the function can be found he
http://www.ozgrid.com/Excel/excel-vlookup-formula.htm

Dave
--
Brevity is the soul of wit.


"JudyK" wrote:

I have a product list within the spreasheet. Product #15-6 (cell A1) costs $5
(cell A2), product #16-9 (cell B1) costs $10 (cell B2), and so on. In
another part of the spreadsheet, when I type 16-9, I want the cell next to it
to automatically enter $10. I would need an elaborate if/then formula. Like
if cell D7=A1, then A2, if D7=B1, then B2, if D7=C1, then C2 and so on for
about 9 items. So whatever item number I type in cell D7, then cell D8 will
automatically place the appropriate price there.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Recurring Excel Formula error - multiple users affected! Rayo K Excel Discussion (Misc queries) 3 April 11th 06 02:22 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Array Formula w/ Multiple SumIf Criteria Andy Excel Worksheet Functions 3 July 13th 05 08:56 PM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM


All times are GMT +1. The time now is 01:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"