#1   Report Post  
Jambruins
 
Posts: n/a
Default What formula to use?

I have a list of teams in column B. In a tab called Division I have 6
division names with the teams listed in their respective division. I want
column C to enter the appropriate division name for the division the team is
in.

For example, I want column C to be labelled as AL EAST when column B has BOS
in it. How do I do this? Thank you.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=INDEX(Division!A:A,MATCH(B1,Division!B:B,0))
etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jambruins" wrote in message
...
I have a list of teams in column B. In a tab called Division I have 6
division names with the teams listed in their respective division. I want
column C to enter the appropriate division name for the division the team

is
in.

For example, I want column C to be labelled as AL EAST when column B has

BOS
in it. How do I do this? Thank you.



  #3   Report Post  
Jambruins
 
Posts: n/a
Default

I get a #n/a when I paste that in. The divisions are in cells A1, B1, C1,
D1, E1, and F1. The teams in division A1 are listed below it in cells A2,
A3, A4, A5, and A6. All of theother divisions are setup the same way. Any
idea why the formula is nor working? Thanks


"Bob Phillips" wrote:

=INDEX(Division!A:A,MATCH(B1,Division!B:B,0))
etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jambruins" wrote in message
...
I have a list of teams in column B. In a tab called Division I have 6
division names with the teams listed in their respective division. I want
column C to enter the appropriate division name for the division the team

is
in.

For example, I want column C to be labelled as AL EAST when column B has

BOS
in it. How do I do this? Thank you.




  #4   Report Post  
Jambruins
 
Posts: n/a
Default

actually it gives me BOS now. BOS is in cell A3 on the Division Tab.

"Bob Phillips" wrote:

=INDEX(Division!A:A,MATCH(B1,Division!B:B,0))
etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jambruins" wrote in message
...
I have a list of teams in column B. In a tab called Division I have 6
division names with the teams listed in their respective division. I want
column C to enter the appropriate division name for the division the team

is
in.

For example, I want column C to be labelled as AL EAST when column B has

BOS
in it. How do I do this? Thank you.




  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

How about:

=INDEX(Division!$A$1:$F$1,
MIN(IF(B1=Division!$A$2:$F$6,COLUMN(Division!$A$2: $F$6))))

(one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Jambruins wrote:

I get a #n/a when I paste that in. The divisions are in cells A1, B1, C1,
D1, E1, and F1. The teams in division A1 are listed below it in cells A2,
A3, A4, A5, and A6. All of theother divisions are setup the same way. Any
idea why the formula is nor working? Thanks

"Bob Phillips" wrote:

=INDEX(Division!A:A,MATCH(B1,Division!B:B,0))
etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jambruins" wrote in message
...
I have a list of teams in column B. In a tab called Division I have 6
division names with the teams listed in their respective division. I want
column C to enter the appropriate division name for the division the team

is
in.

For example, I want column C to be labelled as AL EAST when column B has

BOS
in it. How do I do this? Thank you.





--

Dave Peterson
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
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 10:41 AM.

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"