Conditional Formatting with 3 formats

Bluecalc

New Member
Joined
Oct 22, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I need to make my table reflect this info:
1 column has the percentages and the other one is blank, can someone help? please

Segment 1 = 0-80%
Segment 2 = 81%-100%
Segment 3 = >100%


So the blank one should show which segment each percentage falls into.
 

Some videos you may like

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

McGuilliam

New Member
Joined
Oct 23, 2020
Messages
21
Office Version
  1. 2016
Platform
  1. Windows
Not sure if you mean it should return the segment name or if you need something else, but if it is the names you want this can be done with a IF-function like this:
Excel Formula:
=IF(A1<=80%;"Segment 1";IF(A1<100%;"Segment 2"; "Segment 3"))
 

Bluecalc

New Member
Joined
Oct 22, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I got this message :(
 

Attachments

  • Screenshot (15).png
    Screenshot (15).png
    11.6 KB · Views: 4

Bluecalc

New Member
Joined
Oct 22, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Not sure if you mean it should return the segment name or if you need something else, but if it is the names you want this can be done with a IF-function like this:
Excel Formula:
=IF(A1<=80%;"Segment 1";IF(A1<100%;"Segment 2"; "Segment 3"))
I got this message :(
 

Attachments

  • Screenshot (15).png
    Screenshot (15).png
    11.6 KB · Views: 1

Bluecalc

New Member
Joined
Oct 22, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
oh thank you!

=IF(J7<=80%,"Segment 1",IF(J7<100%,"Segment 2",IF(J7>=100%,"Segment 3")))

that's the one! :D
Not sure if you mean it should return the segment name or if you need something else, but if it is the names you want this can be done with a IF-function like this:
Excel Formula:
=IF(A1<=80%;"Segment 1";IF(A1<100%;"Segment 2"; "Segment 3"))
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
48,400
Office Version
  1. 365
Platform
  1. Windows
=IF(J7<=80%,"Segment 1",IF(J7<100%,"Segment 2",IF(J7>=100%,"Segment 3")))

that's the one! :D
That doesn't seem to be to do with Conditional Formatting per your title thread, but this should produce the same results as the formula you have given

Excel Formula:
="Segment "&MATCH(J7,{0,0.800001,1})
 

Watch MrExcel Video

Forum statistics

Threads
1,127,720
Messages
5,626,477
Members
416,187
Latest member
L_D18

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
Top