+ Reply to Thread
Results 1 to 5 of 5

Result of two formulas (vlookup and Color) into one CELL

Hybrid View

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Result of two formulas (vlookup and Color) into one CELL

    Hi,

    I have a situation where -

    a. I have an array that need to be searched using vlookup say A1 thru B30, using elements of C1 thru C30.
    b. The second column of the array i.e. B1 thru B30 need to be displayed in D1 thru D30 (if found).

    The above part can be easily done using vlookup alone.

    However, few of the items in A1 thru B30 are highlighted using RED color, and I need this color in D column.

    For E.g. If C1 is found at location A20 (which is of RED color), I need D1 to -

    a. Display value of B1 in D1.
    b. D1 cell should be RED in color.

    I believe, VBA need to be made use of to write a UDT for retrieving the cell color, and the same invoked in the sheet.

    However, how can the result of both be set in a single cell?

    Regards,
    CT

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Result of two formulas (vlookup and Color) into one CELL

    Hi
    See the attached workbook.
    Colour code is arrived using GET.CELL function.
    then conditional formating is done using the colour code returned

    only red colour will work in the attached file,

    thanks
    Sadath
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Result of two formulas (vlookup and Color) into one CELL

    Hi Sadath,

    Thanks a lot for the help. However, could you please explain a bit more on linking the two sides -

    I see that you have used =COLOUR=3 and =COLOUR=2 in conditional formatting. How is this linked to the colour of cell in A column. Where have you specified GET.CELL?

    I can see a CVLookup function coded in VBA. However, it doesn't seem to belong here.

    Regards,
    CT.

  4. #4
    Registered User
    Join Date
    10-09-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Result of two formulas (vlookup and Color) into one CELL

    I got it!!!

    You have added the "COLOUR" as a name in Name Manager. Very nice!

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Result of two formulas (vlookup and Color) into one CELL

    Hello @cybertaurean,

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ 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