+ Reply to Thread
Results 1 to 9 of 9

Vlookup return value from a different row

Hybrid View

yrndtn Vlookup return value from a... 02-02-2010, 05:14 AM
zbor Re: Vlookup return value from... 02-02-2010, 05:24 AM
yrndtn Re: Vlookup return value from... 02-02-2010, 05:50 AM
zbor Re: Vlookup return value from... 02-02-2010, 05:57 AM
crazyaboutgus Re: Vlookup return value from... 02-03-2010, 05:50 PM
zbor Re: Vlookup return value from... 02-04-2010, 03:01 AM
opsman Re: Vlookup return value from... 02-03-2010, 06:45 PM
Hollinshead Re: Vlookup return value from... 02-04-2010, 07:28 AM
zbor Re: Vlookup return value from... 02-04-2010, 09:48 AM
  1. #1
    Registered User
    Join Date
    12-31-2008
    Location
    haifa, israel
    MS-Off Ver
    Excel 2007
    Posts
    36

    Vlookup return value from a different row

    Hi,

    I'm trying to use the VLOOKUP function to return value from a row below.
    I have a large list of numbers (sheet Data) for the entire year with 8 different items per week, and I need to create a list for each week with group of 8 unique items as shown on "Week 21" sheet (I did it manually by copy and paste, highlights are just for the example, don't need to be at the original file). After the first 8th rows, it should start over until it gets to the last value on sheet "Week 21".
    Basically, Column B on sheet "Week 21" should be statics, and once I change value on column A it should return values as in the example automatically.

    Thanks
    Attached Files Attached Files
    Last edited by yrndtn; 02-02-2010 at 06:01 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Vlookup return value from a different row

    Look here... Extend as you need:
    Attached Files Attached Files
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    12-31-2008
    Location
    haifa, israel
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Vlookup return value from a different row

    Great, Thanks.
    How do i mark it as "SOLVED"?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Vlookup return value from a different row

    Go to first post -> Edit -> Go advanced -> chooose [solved] from drop down menu

  5. #5
    Registered User
    Join Date
    08-27-2003
    Posts
    3

    Re: Vlookup return value from a different row

    zbor,

    Have you ever seen something like this? It takes the next column up. It's driving me mad.
    Attached Files Attached Files

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Vlookup return value from a different row

    Quote Originally Posted by crazyaboutgus View Post
    It takes the next column up.
    That's because your input and vlookup array doesn't match:

    In A column you have it0001
    In G column you have it0001 with few spaces at the end.

    When you using VLOOKUP function make sure what result do you expect:

    Do you need EXACT match or APROXIMATE match.

    If you need exact match you need to put FALSE at the end of formula:

    =VLOOKUP($A2;G1:H8806;2;FALSE) (wich will give you error in this case because your A2 and G column doesn't match.

    If you need aproximate match

    =VLOOKUP($A2;G1:H8806;2;TRUE) (or if there's no TRUE formula assume it's TRUE)

    1) your data must be sorted in ascending order
    2) if there is no match it will return first lowest value (in this case H1)

    Like...
    if you look for letter C in ABD it would return B...


    Also I assume you need to have locked range:

    =VLOOKUP($A2;$G$1:$H$8806;2;FALSE)

    because your formula will return error if it0001 is for example in row 20 (and everything else works)...

    For this particular case try:

    =VLOOKUP($A2,SUBSTITUTE($G$1:$H$8806," ",""),2,FALSE)

    comfirmed with ctrl+shift+enter

    However, this is not very efficiant solution so best way would be to select G column -> ctrl+H -> (Find what) put space in -> Replace with (Leave blank) -> Replace All (In other words replace all spaces in column G with nothing)

    This is how your original formula will work only adjust it:

    =VLOOKUP($A2,$G$1:$H$8806,2,FALSE)

    This will work for exact match. If there is no exact match you need to decide what to do:

    1) to have error
    2) to return first lower value (see above)
    Last edited by zbor; 02-04-2010 at 03:20 AM.

  7. #7
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    155

    Re: Vlookup return value from a different row

    I've been looking at this too and it's been driving me a little scatty whilst waiting for help on another issue.... however (and I may be wrong) I seem to remember my ex boss telling me something about the first line of lookups and beware with them, so whilst I can't be of much help I think it may be an "excel" thing. I think that's why he always left the first line of his spreadsheets empty....

    I have tried playing around with your attachment, but I couldn;t get the thing to work yet.

  8. #8
    Registered User
    Join Date
    12-22-2009
    Location
    Abu Dhabi, UAE
    MS-Off Ver
    Office 2007
    Posts
    1

    Re: Vlookup return value from a different row

    hi there, i wounder if you could help me with what you may seem is a simple formula. I am trying to create a formula for a cell that caluclates the total amounts in a certain columns that are named a certain value in another column. I know that may not be that clear so heres an example.

    Column 1 (Business Area)
    Risk & Resilience
    Performance Consulting
    Performance Consulting
    Performance Consulting
    Systems solutions

    Column 2 (Gross Profit)
    45,000
    68,500
    100,000
    500,000
    10,000,000

    So the total amount for Risk & Resilience is 45,000 and the total for performance consulting is 668,500.

    I just need a formulas for a cell to automatically calculate this. Any ideas?

    Thanks for your time and efforts in advance.

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Vlookup return value from a different row

    Hi Hollinshead,

    please check forum rules. Your post don't match rule number 2:

    2. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1