#1   Report Post  
Mindie
 
Posts: n/a
Default Array?

I am trying to find out how I can do this. I have 3 sheets in my workbook.
On sheet one I am trying to compare one cell to other cells in sheet 2 and
the answers are in the next row under these cells. I want to display these
answers on another cell in sheet 3. For example: Sheet1!E5=C1 THEN DISPLAY
D1 as the answer to E5, or If Sheet1!E5=C2, then display D2 as the answer to
E5 and so on.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=INDEX(D:D,MATCH(Sheet1!E5,C:C,0))

--

HTH

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


"Mindie" wrote in message
...
I am trying to find out how I can do this. I have 3 sheets in my

workbook.
On sheet one I am trying to compare one cell to other cells in sheet 2 and
the answers are in the next row under these cells. I want to display

these
answers on another cell in sheet 3. For example: Sheet1!E5=C1 THEN

DISPLAY
D1 as the answer to E5, or If Sheet1!E5=C2, then display D2 as the answer

to
E5 and so on.



  #3   Report Post  
Mindie
 
Posts: n/a
Default

I have tried doing this but I keep getting #N/A?

"Bob Phillips" wrote:

=INDEX(D:D,MATCH(Sheet1!E5,C:C,0))

--

HTH

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


"Mindie" wrote in message
...
I am trying to find out how I can do this. I have 3 sheets in my

workbook.
On sheet one I am trying to compare one cell to other cells in sheet 2 and
the answers are in the next row under these cells. I want to display

these
answers on another cell in sheet 3. For example: Sheet1!E5=C1 THEN

DISPLAY
D1 as the answer to E5, or If Sheet1!E5=C2, then display D2 as the answer

to
E5 and so on.




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

That suggests I may have got the data wrong way around.

The formula is saying, match the value in Sheet1 cell E5 against column C on
this worksheet, and when found, get the corresponding value from column D.
Is this how it should be?

--

HTH

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


"Mindie" wrote in message
...
I have tried doing this but I keep getting #N/A?

"Bob Phillips" wrote:

=INDEX(D:D,MATCH(Sheet1!E5,C:C,0))

--

HTH

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


"Mindie" wrote in message
...
I am trying to find out how I can do this. I have 3 sheets in my

workbook.
On sheet one I am trying to compare one cell to other cells in sheet 2

and
the answers are in the next row under these cells. I want to display

these
answers on another cell in sheet 3. For example: Sheet1!E5=C1 THEN

DISPLAY
D1 as the answer to E5, or If Sheet1!E5=C2, then display D2 as the

answer
to
E5 and so on.






  #5   Report Post  
Mindie
 
Posts: n/a
Default

No you were correct in the way that I told you, but the issue I am having
right now is if it doesn't find a match, I get #n/a, and I would prefer to
show blanks. How do I do that?

"Bob Phillips" wrote:

That suggests I may have got the data wrong way around.

The formula is saying, match the value in Sheet1 cell E5 against column C on
this worksheet, and when found, get the corresponding value from column D.
Is this how it should be?

--

HTH

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


"Mindie" wrote in message
...
I have tried doing this but I keep getting #N/A?

"Bob Phillips" wrote:

=INDEX(D:D,MATCH(Sheet1!E5,C:C,0))

--

HTH

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


"Mindie" wrote in message
...
I am trying to find out how I can do this. I have 3 sheets in my
workbook.
On sheet one I am trying to compare one cell to other cells in sheet 2

and
the answers are in the next row under these cells. I want to display
these
answers on another cell in sheet 3. For example: Sheet1!E5=C1 THEN
DISPLAY
D1 as the answer to E5, or If Sheet1!E5=C2, then display D2 as the

answer
to
E5 and so on.








  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

Okay, that's easy enough

=IF(ISNA(MATCH(Sheet1!E5,C:C,0)),"",INDEX(D:D,MATC H(Sheet1!E5,C:C,0)))


--

HTH

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


"Mindie" wrote in message
...
No you were correct in the way that I told you, but the issue I am having
right now is if it doesn't find a match, I get #n/a, and I would prefer to
show blanks. How do I do that?

"Bob Phillips" wrote:

That suggests I may have got the data wrong way around.

The formula is saying, match the value in Sheet1 cell E5 against column

C on
this worksheet, and when found, get the corresponding value from column

D.
Is this how it should be?

--

HTH

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


"Mindie" wrote in message
...
I have tried doing this but I keep getting #N/A?

"Bob Phillips" wrote:

=INDEX(D:D,MATCH(Sheet1!E5,C:C,0))

--

HTH

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


"Mindie" wrote in message
...
I am trying to find out how I can do this. I have 3 sheets in my
workbook.
On sheet one I am trying to compare one cell to other cells in

sheet 2
and
the answers are in the next row under these cells. I want to

display
these
answers on another cell in sheet 3. For example: Sheet1!E5=C1

THEN
DISPLAY
D1 as the answer to E5, or If Sheet1!E5=C2, then display D2 as the

answer
to
E5 and so on.








  #7   Report Post  
Mindie
 
Posts: n/a
Default

Thanks, that worked perfectly!

"Bob Phillips" wrote:

Okay, that's easy enough

=IF(ISNA(MATCH(Sheet1!E5,C:C,0)),"",INDEX(D:D,MATC H(Sheet1!E5,C:C,0)))


--

HTH

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


"Mindie" wrote in message
...
No you were correct in the way that I told you, but the issue I am having
right now is if it doesn't find a match, I get #n/a, and I would prefer to
show blanks. How do I do that?

"Bob Phillips" wrote:

That suggests I may have got the data wrong way around.

The formula is saying, match the value in Sheet1 cell E5 against column

C on
this worksheet, and when found, get the corresponding value from column

D.
Is this how it should be?

--

HTH

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


"Mindie" wrote in message
...
I have tried doing this but I keep getting #N/A?

"Bob Phillips" wrote:

=INDEX(D:D,MATCH(Sheet1!E5,C:C,0))

--

HTH

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


"Mindie" wrote in message
...
I am trying to find out how I can do this. I have 3 sheets in my
workbook.
On sheet one I am trying to compare one cell to other cells in

sheet 2
and
the answers are in the next row under these cells. I want to

display
these
answers on another cell in sheet 3. For example: Sheet1!E5=C1

THEN
DISPLAY
D1 as the answer to E5, or If Sheet1!E5=C2, then display D2 as the
answer
to
E5 and so on.









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
Where is the bug in my array? Gail Gurman Excel Discussion (Misc queries) 1 January 25th 05 12:36 AM
Help with array formula Excel Worksheet Functions 2 January 20th 05 04:17 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


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