A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If value, then display underneath value



 
 
Thread Tools Display Modes
  #1  
Old October 10th, 2009, 11:22 AM posted to microsoft.public.excel.misc
puiuluipui
external usenet poster
 
Posts: 467
Default If value, then display underneath value

Hi, i have in C10 a value. This value is changing I need a code to look in
C10, see what is in this cell, and to search for that value in A1:L1, and if
it finds C10 value, then to display content from underneath cell.
Ex:
A B C ...... L
01.01.2009 01.02.2009 01.03.2009
153/01.01.2009 238/01.02.2009 542/01.03.2009

If in C10 is 01.02.2009, then to display 238/01.02.200.
Something like :If(indirect(C10), A1:L1, then display match(A2:L2)
If the code finds C10 value in A1:L1, then to display content of
correspondind underneath cell.
In A2:L2, i have something like this : 238/01.02.2009, so i need to retrieve
"number, slash, date"
Can this be done?
Thanks!
  #2  
Old October 10th, 2009, 11:30 AM posted to microsoft.public.excel.misc
Mike H
external usenet poster
 
Posts: 8,419
Default If value, then display underneath value

Hi,

=HLOOKUP(C10,A1:L2,2,FALSE)

Mike

"puiuluipui" wrote:

Hi, i have in C10 a value. This value is changing I need a code to look in
C10, see what is in this cell, and to search for that value in A1:L1, and if
it finds C10 value, then to display content from underneath cell.
Ex:
A B C ...... L
01.01.2009 01.02.2009 01.03.2009
153/01.01.2009 238/01.02.2009 542/01.03.2009

If in C10 is 01.02.2009, then to display 238/01.02.200.
Something like :If(indirect(C10), A1:L1, then display match(A2:L2)
If the code finds C10 value in A1:L1, then to display content of
correspondind underneath cell.
In A2:L2, i have something like this : 238/01.02.2009, so i need to retrieve
"number, slash, date"
Can this be done?
Thanks!

  #3  
Old October 10th, 2009, 03:48 PM posted to microsoft.public.excel.misc
puiuluipui
external usenet poster
 
Posts: 467
Default If value, then display underneath value

Hi Mike, it's not working. I get #REF!
And i need the cell below. I think your code retrieve the cell to the right.
Thanks!

"Mike H" wrote:

Hi,

=HLOOKUP(C10,A1:L2,2,FALSE)

Mike

"puiuluipui" wrote:

Hi, i have in C10 a value. This value is changing I need a code to look in
C10, see what is in this cell, and to search for that value in A1:L1, and if
it finds C10 value, then to display content from underneath cell.
Ex:
A B C ...... L
01.01.2009 01.02.2009 01.03.2009
153/01.01.2009 238/01.02.2009 542/01.03.2009

If in C10 is 01.02.2009, then to display 238/01.02.200.
Something like :If(indirect(C10), A1:L1, then display match(A2:L2)
If the code finds C10 value in A1:L1, then to display content of
correspondind underneath cell.
In A2:L2, i have something like this : 238/01.02.2009, so i need to retrieve
"number, slash, date"
Can this be done?
Thanks!

  #4  
Old October 10th, 2009, 03:55 PM posted to microsoft.public.excel.misc
puiuluipui
external usenet poster
 
Posts: 467
Default If value, then display underneath value

Hi Mike, my mistake, it's working.
Thanks!

"Mike H" wrote:

Hi,

=HLOOKUP(C10,A1:L2,2,FALSE)

Mike

"puiuluipui" wrote:

Hi, i have in C10 a value. This value is changing I need a code to look in
C10, see what is in this cell, and to search for that value in A1:L1, and if
it finds C10 value, then to display content from underneath cell.
Ex:
A B C ...... L
01.01.2009 01.02.2009 01.03.2009
153/01.01.2009 238/01.02.2009 542/01.03.2009

If in C10 is 01.02.2009, then to display 238/01.02.200.
Something like :If(indirect(C10), A1:L1, then display match(A2:L2)
If the code finds C10 value in A1:L1, then to display content of
correspondind underneath cell.
In A2:L2, i have something like this : 238/01.02.2009, so i need to retrieve
"number, slash, date"
Can this be done?
Thanks!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.