Data Bars Based on Text Values with Drop Down List

PostTIT

Board Regular
Joined
Aug 22, 2016
Messages
94
I have a table with one of the columns having a drop down list with 9 options. The drop down list takes it's options from a list elsewhere in the spreadsheet, as standard.

I understand how conditional formatting data bars works, using numbers in a range and filling out the bar based on the values. However, I want to have some magic done where it's not just values - but if I have to have values somewhere (and hide them away) then I will.


My list is the following: [TABLE="width: 75"]
<colgroup><col width="75" style="width:56pt"> </colgroup><tbody>[TR]
[TD="class: xl38, width: 75"]Not scanned[/TD]
[/TR]
[TR]
[TD="class: xl31"]Scanned[/TD]
[/TR]
[TR]
[TD="class: xl31"]Ready[/TD]
[/TR]
[TR]
[TD="class: xl31"]Submitted[/TD]
[/TR]
[TR]
[TD="class: xl31"]Processed[/TD]
[/TR]
[TR]
[TD="class: xl31"]Approved[/TD]
[/TR]
[TR]
[TD="class: xl31"]Paid[/TD]
[/TR]
[TR]
[TD="class: xl31"]Not Paid[/TD]
[/TR]
[TR]
[TD="class: xl31"]Denied[/TD]
[/TR]
</tbody>[/TABLE]

And so I would like the data bars to correspond to each word, where 'not scanned' is 0% through to 'Paid' is 100%, 'Not Paid' and 'Denied' sit at 90%. So that when each option is chosen from the drop down list the correct data bar is shown over it.

Would this be possible? Could you assign each word in that list a value (I wouldn't know how to do that) and therefore use conditional formatting to provide data bars that way?

I also then wouldn't be totally sure how to apply the conditional formatting to make the data bars appear dependant on which option is chosen.

Bit of a ramble, but if you can get through it and offer some help that would be great! In essence, data bars to be dependant on text....
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Where do you want the data bar?
One way is to set up the validation list as two columns, one with the text value and one with the numeric value. Then use XLOOKUP to derive the value from the validation text, and format that value with a data bar.
1725928081606.png


Book1
ABCDEFG
2
3Not scanned Not scanned0
4Scanned Scanned0.2
5Ready Ready0.4
6Submitted Submitted0.6
7Processed Processed0.7
8Approved Approved0.8
9Paid Paid1
10Not paid Not paid0.9
11Denied Denied0.9
12
Sheet1
Cell Formulas
RangeFormula
B3:B11B3=XLOOKUP(A3,$F$3:$F$11,$G$3:$G$11,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B11,B13:B111Other TypeDataBarNO
Cells with Data Validation
CellAllowCriteria
A3:A11List=$F$3:$F$11
 
Upvote 0
Where do you want the data bar?
One way is to set up the validation list as two columns, one with the text value and one with the numeric value. Then use XLOOKUP to derive the value from the validation text, and format that value with a data bar.
View attachment 116659

Book1
ABCDEFG
2
3Not scanned Not scanned0
4Scanned Scanned0.2
5Ready Ready0.4
6Submitted Submitted0.6
7Processed Processed0.7
8Approved Approved0.8
9Paid Paid1
10Not paid Not paid0.9
11Denied Denied0.9
12
Sheet1
Cell Formulas
RangeFormula
B3:B11B3=XLOOKUP(A3,$F$3:$F$11,$G$3:$G$11,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B11,B13:B111Other TypeDataBarNO
Cells with Data Validation
CellAllowCriteria
A3:A11List=$F$3:$F$11
I want the data bars to in the same column as the selection ( column a).
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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