vlookup + formatting

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi

I wrote vlookup function + match function to return the value if a user enter name and month

A1= please enter name
A2= Please enter month

A3= vlookup (?,?:?,match(?,?,exact),false)

Everything is fine, if user enter Mary and month is Feb then the vllookup will return 22. My question, how can I make excel highlight 22 in the table in green color for example? Is that possible? Thank you so much.

namejanfebmarapr
john1235
mary11225488
alex84332
liz14944

<tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Conditional formatting, using a Formula to identify where the condition is met. Try writing the formula outside of Conditional Formatting until you get it right, then copy it in. A formula that might work would be:

=AND(A1=[mary],A2=[feb])

where [mary] and [feb] are the cells containing those values. You'll need to understand the use of $ in cell references to apply the conditional format formula to all cells, this particular CF would be applied to the cell containing 22, and would vary when copied to other cells so the rows & columns would need to be locked correctly to let this happen
 
Upvote 0

Forum statistics

Threads
1,215,030
Messages
6,122,762
Members
449,095
Latest member
m_smith_solihull

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