+ Reply to Thread
Results 1 to 8 of 8

Losing bolded and underlined text in the process...

Hybrid View

  1. #1
    Registered User
    Join Date
    10-19-2010
    Location
    Red Deer, AB
    MS-Off Ver
    Excel 2007
    Posts
    11

    Losing bolded and underlined text in the process...

    I have a table and am using =VLOOKUP(B3,Table2,2,FALSE) to automatically fill in descriptions for products. Only thing is, I have bolded and underlined text in the description and when VLOOKUP locates the information it appears as regular text. Help...

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Losing bolded and underlined text in the process...

    You cannot bring across cell formatting with Excel formulas. You would have to switch over to a VBA-based lookup process that copied the entire cell contents and attributes.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Losing bolded and underlined text in the process...

    Hello Sinnes.
    When a vlookup is searching it is trying to match the values only , not the format.
    If you wanted the result of the vlookup to be formatted the same way as the source then you will have to select the area and change the format manually, you can do this prior to writing the formula or after.
    Regards
    Peter

  4. #4
    Registered User
    Join Date
    10-19-2010
    Location
    Red Deer, AB
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Losing bolded and underlined text in the process...

    Thanks everyone, I didn't receive email notification that anybody had replied so I started a new thread, whoops

    I have attached an example of what I'm trying to do, spent almost 2 hours playing around with it this morning and am pretty much feeling defeated.

    Any help would be great
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-19-2010
    Location
    Red Deer, AB
    MS-Off Ver
    Excel 2007
    Posts
    11

    Retaining source cell formatting when using VLOOKUP

    Is there a way to keep the formatting, IE Bolded and Underlined text?

    =VLOOKUP(B29,Table2,2,FALSE)

    Any help would be great

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Retaining source cell formatting when using VLOOKUP

    Not using VLOOKUP I'm afraid or any other standard Excel function for that matter.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  7. #7
    Registered User
    Join Date
    10-19-2010
    Location
    Red Deer, AB
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Retaining source cell formatting when using VLOOKUP

    Anything else you may be able to suggest, other than VLOOKIP? I have a database that pulls a product description based on the product selected from the dropdown menu. The table containing all the information contains a lot of formatting, and the descriptions are fairly long.

  8. #8
    Registered User
    Join Date
    10-19-2010
    Location
    Red Deer, AB
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Retaining source cell formatting when using VLOOKUP

    I've attached an example
    Attached Files Attached Files

+ 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