Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default How to return to the value of a cell?

For example, I have two columns as follows:
A B C D
11 50 10 35
23 20
35 10
47 40
59 30

I need the Excel to look up the row first where the value of the column B
equals to cell C. And then, at the same row, pick up the value in column A
and input it into cell D.

Thank you very much.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default How to return to the value of a cell?

=INDEX(A1:A5,MATCH(C1,B1:B5))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Yuanhang" wrote in message ...
| For example, I have two columns as follows:
| A B C D
| 11 50 10 35
| 23 20
| 35 10
| 47 40
| 59 30
|
| I need the Excel to look up the row first where the value of the column B
| equals to cell C. And then, at the same row, pick up the value in column A
| and input it into cell D.
|
| Thank you very much.
|


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to return to the value of a cell?

Try this in d1

=OFFSET(B1,MATCH(C1,B1:B5,0)-1,-1,1,1)

Mike

"Yuanhang" wrote:

For example, I have two columns as follows:
A B C D
11 50 10 35
23 20
35 10
47 40
59 30

I need the Excel to look up the row first where the value of the column B
equals to cell C. And then, at the same row, pick up the value in column A
and input it into cell D.

Thank you very much.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default How to return to the value of a cell?

For example, I have two columns as follows:
A B C D
11 50 10 35
23 20
35 10
47 40
59 30

I need the Excel to look up the row first where the value of the column B
equals to cell C. And then, at the same row, pick up the value in column A
and input it into cell D.


Oh, why not... let's add to the mix of answers...

=INDIRECT("A"&MATCH(C1,$B$1:$B$100,0))

Rick

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
Compare Value in Cell 1 to a List, Return Value if Match otherwise Return Null Ben Excel Discussion (Misc queries) 2 March 15th 07 01:02 AM
Return cell adress for next non-blank cell in a range toreadore Excel Worksheet Functions 1 June 28th 06 12:37 PM
How do you make cell 2 return data if cell 1 contains text? jermsalerms Excel Discussion (Misc queries) 3 January 5th 06 10:44 PM
Select cell, Copy it, Paste it, Return to Previous cell spydor Excel Discussion (Misc queries) 1 December 30th 05 01:29 PM
function CELL() to return the formula in the referenced cell Streep Excel Worksheet Functions 3 August 20th 05 10:24 PM


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