VLOOKUP and formats

601488

New Member
Joined
Jan 12, 2007
Messages
20
Good afternoon,

I have a set of data in a spreadsheet as follows, for example:
A B
200571 Jim
200572 Barry
200573 Simon
200574 Alex

I then have a vlookup in another tab whereby I lookup from the six digit code and want to return the name in column B. However, I want to be able to return the format of that data too. For example if I'm looking up from 200573 I want to return Simon but in red text, whereas if I lookup 200571 I want to return Jim but in black text.

Any thoughts?

Thank you

 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You cannot do that with a formula, as formulae do not see formats.
 
Upvote 0
If Simon is conditionally formatted, then what you can try is to also Vlookup the conditions contributing to the formatting, then apply the same conditional formatting to the first Vlookup cell/column.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top