# How do I make this comparison to peer graph?

#### inxlsplot

##### New Member

I need to make something like this in Excel. Four shades (I'll change the color) indicating quartiles - just four even shapes to represent. The numbers on the bottom represent the quartile value. The yellow marker is where the person is on that said scale.

I've tried stacked columns and bars. Stacked bars with combo chart indicating line marker for the actual isn't an option because the 4 shades still represent the percentages (they end up being uneven)

Requirement: It is important that it's horizontal. Needs to read from data. Needs to be repeatable from client to client. Is it possible to do this in Excel?

### Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

#### JGordon11

##### Well-known Member
with E1 containing the number of spaces each quartile cell will accomodate (in the example 39)

Book1
BCDE
1Ind1.02%39
2
3
40.92%1.07%1.17%1.30%
Sheet2
Cell Formulas
RangeFormula
B3B3=IF(\$C\$1<B4,REPT(" ",INT(\$C\$1*\$E\$1/B4)) &"◊","")
C3:D3C3=IF(AND(\$C\$1>=B4,\$C\$1<C4),REPT(" ",INT((\$C\$1-B4)*\$E\$1/(C4-B4))) &"◊","")
E3E3=IF(AND(\$C\$1>=D4,\$C\$1<=E4),REPT(" ",INT((\$C\$1-D4)*\$E\$1/(E4-D4))) &"◊","")

#### inxlsplot

##### New Member
with E1 containing the number of spaces each quartile cell will accomodate (in the example 39)

Book1
BCDE
1Ind1.02%39
2
3
40.92%1.07%1.17%1.30%
Sheet2
Cell Formulas
RangeFormula
B3B3=IF(\$C\$1<B4,REPT(" ",INT(\$C\$1*\$E\$1/B4)) &"◊","")
C3:D3C3=IF(AND(\$C\$1>=B4,\$C\$1<C4),REPT(" ",INT((\$C\$1-B4)*\$E\$1/(C4-B4))) &"◊","")
E3E3=IF(AND(\$C\$1>=D4,\$C\$1<=E4),REPT(" ",INT((\$C\$1-D4)*\$E\$1/(E4-D4))) &"◊","")

I will give this a go early next week (have to travel out of town and will be AFK. And if it works, I'll mark this as a solution. I'm quite excited to try it out. Thank you!

Replies
1
Views
558
Replies
1
Views
4K
Replies
0
Views
13K
Replies
1
Views
2K
Replies
1
Views
3K

1,181,599
Messages
5,930,812
Members
436,761
Latest member
mintwaxed

### 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.

### Which adblocker are you using?

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

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