conditional formatting

zoinc

New Member
Joined
Jun 6, 2017
Messages
3
Namepurchase 1purchase 2purchase 3Amountcustomer sinceyears membership
Abricht

<colgroup><col></colgroup><tbody>
</tbody>
1

<colgroup><col></colgroup><tbody>
</tbody>
4
0
$291

<colgroup><col></colgroup><tbody>
</tbody>
6/7/1994

<colgroup><col></colgroup><tbody>
</tbody>
23 years
Annijs07

0$495 9/9/198630 years
Bingen123$4202/14/198324 years
Callens956$28012/14/199719 years

<tbody>
</tbody>

Really sorry for my Table, I'll make something much better next time just need some more practice....
I simply can't manage to use conditional formatting just with one column using another has a reference

In column A. Mark the names of the customers with a light green fill when they are a member for 15 years or more.
Mark the names of the customers with a light yellow fill when they are less than 15 years a member.

Can someone give me a hand with this? I'm kind of desperate...thank you
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
After selecting the A column
CF for green =and($G2<>"",(left($G2,2)+0)>=15)
CF for yellow =and($G2<>"",(left($G2,2)+0)<15)
 
Upvote 0
Namepurchase 1purchase 2purchase 3Amountcustomer sinceyears membership
Abricht

<tbody>
</tbody>
1

<tbody>
</tbody>
40
$291

<tbody>
</tbody>
6/7/1994

<tbody>
</tbody>
23 years
Annijs07
0$495 9/9/198630 years
Bingen123$4202/14/198324 years
Callens956$28012/14/199719 years

<tbody>
</tbody>

Really sorry for my Table, I'll make something much better next time just need some more practice....
I simply can't manage to use conditional formatting just with one column using another has a reference

In column A. Mark the names of the customers with a light green fill when they are a member for 15 years or more.
Mark the names of the customers with a light yellow fill when they are less than 15 years a member.

Can someone give me a hand with this? I'm kind of desperate...thank you

highlight the names, go to Conditional Formatting -> New Rule -> Use a formula

=DATEDIF($F2,TODAY(),"Y")>=15
 
Upvote 0
CF

=SUBSTITUTE(VLOOKUP(A2,$A$2:$G$5,7,FALSE),"years","")*1<15 applies =$A$2:$A$5 yellow

=SUBSTITUTE(VLOOKUP(A2,$A$2:$G$5,7,FALSE),"years","")*1>=15 applies =$A$2:$A$5 green
 
Upvote 0
Namepurchase 1purchase 2purchase 3Amountcustomer sinceyears membership
Abricht

<tbody>
</tbody>
1

<tbody>
</tbody>
40
$291

<tbody>
</tbody>
6/7/1994

<tbody>
</tbody>
23 years
Annijs07
0$495 9/9/198630 years
Bingen123$4202/14/198324 years
Callens956$28012/14/199719 years

<tbody>
</tbody>

Really sorry for my Table, I'll make something much better next time just need some more practice....
I simply can't manage to use conditional formatting just with one column using another has a reference

In column A. Mark the names of the customers with a light green fill when they are a member for 15 years or more.
Mark the names of the customers with a light yellow fill when they are less than 15 years a member.

Can someone give me a hand with this? I'm kind of desperate...thank you

1.) select A2 > open Conditional Formatting > Use Formula > =$G2<15 > apply a format "color fills etc."
2.) select A2 > open Conditional Formatting > Use Formula > =$G2>=15 > apply a format "color fills etc."

use format painter to copy down.
 
Upvote 0

Forum statistics

Threads
1,215,758
Messages
6,126,702
Members
449,331
Latest member
smckenzie2016

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