Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do i write logical_test for more than 100 values (IF)

I would like to use (IF) for more than 100 values "I want to type the
employee number and the logical test to be employee name
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How do i write logical_test for more than 100 values (IF)

Hi,

You can't nest id's that deeply so another way is a table like this
Col A Col B
100 aa
101 bb
102 cc
103 dd
104 ee
105 ff
106 gg
107 hh
108 ii
109 jj
110 kk
111 ll

Column A are your ID No's and Column B are names. The formula
=VLOOKUP(C1,A1:B12,2,FALSE)

Looks for the ID No in C1 in Column A and returns the corresponding name
form Column B

Mike
"Horani" wrote:

I would like to use (IF) for more than 100 values "I want to type the
employee number and the logical test to be employee name

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default How do i write logical_test for more than 100 values (IF)

Hi

You should not be using IF for that number of tests.
Use Vlookup instead.
With a list of Employee numbers in column A and Employee Names in column B,
and with the Employee number to be looked up in C1, enter in D1
=VLOOKUP(C1,$A:$B,2,0)
and that will return the Employee's name

For more help on Vlookup take a look at
http://www.contextures.com/xlFunctions02.html

--
Regards
Roger Govier

"Horani" wrote in message
...
I would like to use (IF) for more than 100 values "I want to type the
employee number and the logical test to be employee name


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
Need help to write formula in Excel to auto show only cells with values Genesis[_2_] Excel Discussion (Misc queries) 6 August 17th 07 04:06 PM
Need to test for alphanumeric value and write numeric values to ce Pyramid 36 Excel Worksheet Functions 3 August 3rd 07 03:15 AM
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? Daniel Excel Worksheet Functions 1 June 23rd 05 11:38 PM
How do I write formula to compare two values and pull the resulta. Renee Excel Worksheet Functions 1 February 11th 05 01:31 AM
Can't find logical_test for "if"statement John Grossman Excel Worksheet Functions 1 February 5th 05 04:34 AM


All times are GMT +1. The time now is 08:52 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"