Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default If statements

I am trying to program excel for a really long conditional statement. First
column is product ( approximately 200 unique products). The second column is
for product families (10 families). I want to enter the product and
automatically populate the family column. Can I write an IF statement of this
length, and if so how? I'm hitting a wall here.

Example is: products MP-700, MP-550 and MP-600 are ABC family; i-50, i-40
and u-80 are DEF family. Any help on what this string would like is greatly
appreciated.

Thanks, Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default If statements

Hi Mike,

I would set up a lookup table on a separate sheet, where column A would be
your product and column B would be the family. Assuming you have 200
products in this table in a sheet called "Lookup", and assuming the first
product you wanted to look up was in cell A1 on your product list sheet, the
formula you would write in cell B1 on the product list sheet would be as
follows:
=IF(ISBLANK(A1),"",VLOOKUP(A1,Lookup!$A$1:$B$200,2 ,FALSE))

You could then copy this formula as far down the sheet as you need to go.

Hope this helps,

Mark


"Mike101338" wrote:

I am trying to program excel for a really long conditional statement. First
column is product ( approximately 200 unique products). The second column is
for product families (10 families). I want to enter the product and
automatically populate the family column. Can I write an IF statement of this
length, and if so how? I'm hitting a wall here.

Example is: products MP-700, MP-550 and MP-600 are ABC family; i-50, i-40
and u-80 are DEF family. Any help on what this string would like is greatly
appreciated.

Thanks, Mike

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
IF statements dannyboy8 Excel Worksheet Functions 1 May 14th 08 05:10 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
If statements redlion Excel Discussion (Misc queries) 1 July 7th 06 06:44 AM
IF statements Kinggops Excel Discussion (Misc queries) 4 December 2nd 05 10:32 PM
operator statements, shorting when reusing one of the statements? KR Excel Programming 1 August 4th 05 06:20 PM


All times are GMT +1. The time now is 12:01 AM.

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

About Us

"It's about Microsoft Excel"