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.

[TABLE="width: 200"]
<tbody>[TR]
[TD]name[/TD]
[TD]jan[/TD]
[TD]feb[/TD]
[TD]mar[/TD]
[TD]apr[/TD]
[/TR]
[TR]
[TD]john[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]mary[/TD]
[TD]11[/TD]
[TD]22[/TD]
[TD]54[/TD]
[TD]88[/TD]
[/TR]
[TR]
[TD]alex[/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD]33[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]liz[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]9[/TD]
[TD]44[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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