+ Reply to Thread
Results 1 to 4 of 4

How to Pick Value of adjacent cell when Search is true

  1. #1
    Registered User
    Join Date
    03-30-2008
    Posts
    32

    How to Pick Value of adjacent cell when Search is true

    Hi All,
    I want to pick values from adjacent cell, if he search is true.
    For Example
    Cell A Cell B Cell C Cell D
    37156306160 +0000000000100.00 37156306160
    37156306167 +0000000000100.00 37156306167
    37156306500 +0000000000150.00 37156306641
    37156306501 +0000000005000.00 37157306004
    37156306501 +0000000002500.00 37157306009
    37156306501 +0000000001500.00 37157306010
    37156306501 +0000000001500.00 37157306011
    37156306502 +0000000005000.00 37157306012

    I want to take the first Value from Cell C and Search in Cell A, if the search is true, then pick the adjacent cell value, in this case pick from 1st row of cell B.
    Please suggest if VLOOKUP or HLOOKUP or Match can be used successfully or not.


    Regards,
    Tushar

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    VLookup or any other search wont do what you want, look at your data in column A you have multiples of the same number, so you would need to go through each of these and PICK the correct answer thats provided you know what the answer would be, i think your looking at VBA to do this but you have to know what criteria it should show or should it show all of them?
    Not all forums are the same - seek and you shall find

  3. #3
    Registered User
    Join Date
    03-30-2008
    Posts
    32
    Hi Simon,

    I have the VBA code for the same, but was just wondering if we can use excel inbuilt formula.
    Anyways,

    in column A you have multiples of the same number
    Whatif I remove multiples, then is it possible to do it.

    Regards,
    Tushar

  4. #4
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Naturally, Vlookup will work fine, in column d =VLOOKUP(C1,A1:B20,2,FALSE)

+ 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