Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default transformed vloopup

Hello, I need to use vlookup in different way. As it is known well, vlookup finds a common key and insert a described cell for the related match. However, I just want to insert one above cell for the related match.

For example, let the "column "A" consist just a character "c" in its first row(A1). And Let F1G5 is a table like,

a 5
b 12
c 23
d 43
e 45
Then I apply =VLOOKUP(A:A;F:G;2;0) function in the B1 cell. Naturally it returns 23. However, what I want a way to return one above cell, which 12. How can I do that. I will be very glad for the help. Thanks a lot.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default transformed vloopup

Hi Oercim,

Am Mon, 8 Apr 2013 04:55:27 -0700 (PDT) schrieb oercim:

For example, let the "column "A" consist just a character "c" in its first row(A1). And Let F1G5 is a table like,

a 5
b 12
c 23
d 43
e 45
Then I apply =VLOOKUP(A:A;F:G;2;0) function in the B1 cell. Naturally it returns 23. However, what I want a way to return one above cell, which 12. How can I do that. I will be very glad for the help. Thanks a lot.


try:
=INDEX(G1:G5,MATCH("c",F1:F5,0)-1)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default transformed vloopup

Thank you very much Mr. Busch for giving your time. Your reply was very helpful for me. Thanks again.
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
vloopup and data vadilation vcff Excel Discussion (Misc queries) 2 May 9th 09 11:06 AM
using a cell reference is Vloopup to access external workbooks Carl[_3_] Excel Programming 8 September 10th 07 08:32 AM
Help with my VBA Vloopup jln via OfficeKB.com Excel Programming 1 November 1st 06 06:54 PM
How to convert VLOOPUP error value #NA to 0? Rex Excel Worksheet Functions 4 February 26th 06 12:23 PM
A range of values transformed Alex[_13_] Excel Programming 3 November 20th 03 06:43 AM


All times are GMT +1. The time now is 03:34 AM.

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"