Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default VLOOKUP USING INDEX, MATCH, AND IF PLEASE HELP

=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),2)
=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),3)

How can I dynamically choose which column ie;2 or 3 this formula returns
data from based on the assigned installer in CELL C2?

The possible installers in column C would range from 9501 to 9599 some
installers are employees and would need to pull from column 2 and other
installers are contractors and would need to pull from column 3.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 698
Default VLOOKUP USING INDEX, MATCH, AND IF PLEASE HELP

If the numbers are consecutive for employees and contractors, say 9510 to
9550 for employees and the others are contractors, maybe something like:

=IF(C2<9551,INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet 1!$A$1:$A$44,0),2),
INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$44 ,0),3)

If there is a mixture, I don't know how you would handle that.

HTH
Regards,
Howard


"Tomkat743" wrote in message
...
=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),2)
=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),3)

How can I dynamically choose which column ie;2 or 3 this formula returns
data from based on the assigned installer in CELL C2?

The possible installers in column C would range from 9501 to 9599 some
installers are employees and would need to pull from column 2 and other
installers are contractors and would need to pull from column 3.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default VLOOKUP USING INDEX, MATCH, AND IF PLEASE HELP

Thank you, what if I just want it to equal whatever c2 is at the time? can I
create a table for contractor tech numbers and another one for employee tech
numbers. Or just one table for employee tech numbers and if it doesn't find
it there revert to the second string. So if value was false it would go to
string 2
=IF(C2=A VALUE IN AN EMPLOYEE
TABLE,TRUE=INDEX(SHEET1!$A$1:$C$44,MATCH(I2,Sheet1 !$A$1:$A$44,0),2),=INDEX(Sheet1!$A$1:$C$44,MATCH(I 2,Sheet1!$A$1:$A$44,0),3)

"L. Howard Kittle" wrote:

If the numbers are consecutive for employees and contractors, say 9510 to
9550 for employees and the others are contractors, maybe something like:

=IF(C2<9551,INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet 1!$A$1:$A$44,0),2),
INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$44 ,0),3)

If there is a mixture, I don't know how you would handle that.

HTH
Regards,
Howard


"Tomkat743" wrote in message
...
=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),2)
=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),3)

How can I dynamically choose which column ie;2 or 3 this formula returns
data from based on the assigned installer in CELL C2?

The possible installers in column C would range from 9501 to 9599 some
installers are employees and would need to pull from column 2 and other
installers are contractors and would need to pull from column 3.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 698
Default VLOOKUP USING INDEX, MATCH, AND IF PLEASE HELP

Hmmm, I might be missing something here. The formula I posted says if TRUE
do column 2, if FALSE do column 3.

The C2 values have to have some method of cooperation, like every number
below a certain value is an employee. So if the formula returns False it
does column 2.

Regards,
Howard

"Tomkat743" wrote in message
...
=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),2)
=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),3)

How can I dynamically choose which column ie;2 or 3 this formula returns
data from based on the assigned installer in CELL C2?

The possible installers in column C would range from 9501 to 9599 some
installers are employees and would need to pull from column 2 and other
installers are contractors and would need to pull from column 3.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 698
Default VLOOKUP USING INDEX, MATCH, AND IF PLEASE HELP

Should say if returns false does column 3.

H

"L. Howard Kittle" wrote in message
. ..
Hmmm, I might be missing something here. The formula I posted says if
TRUE do column 2, if FALSE do column 3.

The C2 values have to have some method of cooperation, like every number
below a certain value is an employee. So if the formula returns False it
does column 2.

Regards,
Howard

"Tomkat743" wrote in message
...
=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),2)
=INDEX(Sheet1!$A$1:$C$44,MATCH(I2,Sheet1!$A$1:$A$4 4,0),3)

How can I dynamically choose which column ie;2 or 3 this formula returns
data from based on the assigned installer in CELL C2?

The possible installers in column C would range from 9501 to 9599 some
installers are employees and would need to pull from column 2 and other
installers are contractors and would need to pull from column 3.








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
Vlookup/Index/Match frankjh19701 Excel Worksheet Functions 0 January 6th 11 08:29 PM
not sure if i need vlookup or match/index se7098 Excel Worksheet Functions 2 March 28th 09 01:14 AM
index Match, or Vlookup Match.. news.transedge.com Excel Worksheet Functions 1 August 3rd 07 02:00 AM
VLookup or Index Match or ??? KopRed Excel Worksheet Functions 1 February 17th 06 05:34 AM
VLookup or Index Match ? TARZAN Excel Worksheet Functions 1 March 15th 05 10:24 PM


All times are GMT +1. The time now is 05:56 PM.

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"