00:00Let's explore two ways to creating vertical inline bar chart like this and
00:03compare the pros and cons of using it. Let's start off with REPT function here.
00:08First you're gonna have to say equal REPT and you're gonna put double code G
00:13double code and the second argument would be the value itself the number in
00:17B2 and close parentheses. So what we're gonna do is I'm gonna apply the same
00:21formula right across the column all the way to December like this and it should
00:25look something like this. Next after you select like this you're gonna go to home
00:29font you're gonna change this to webding like this. Now you can see it sort of
00:34look like a bar but they are actually horizontal at this point so the way to
00:39rotate it will be to go alignment in here you're gonna click on this guy here and
00:43click on rotate text up and now you'll look like a vertical in cell bar chart.
00:49Next we're gonna look at sparkline you're gonna select the cell like this here then
00:54you go insert and you're gonna look for sparkline here like this here and click
00:58on columns and over here on this data range you're gonna select the actual data
01:03from January to December for the sales volume and once that's done click OK and
01:08the chart would look something like this. Once you select the chart your sparkline
01:14tab should be selected like this here. Go to axis and in here on the vertical axis
01:19minimum value option you're gonna select same for all sparklines. Likewise you go
01:25again on axis again and vertical axis maximum value option you're gonna do the
01:30same thing same for all sparkline. Those are the two ways of creating in-cell
01:35vertical bar chart. Now let's compare the two in-cell charts in a nutshell. REPT
01:41does not handle negative and large number very well. Let me show you what I mean by
01:45that. If I change this to say minus 10 you can see it goes crazy here. Do minus two
01:50here. And also likewise if you change this number to a really big number like 30 you
01:55can see it goes off the chart. But if you look at sparkline it handles negative
02:00numbers very well and also large numbers very well. But with that being said why
02:05and when would you use REPT chart? It is handy when you have to build a star rating
02:10charts and marry them together with conditional formatting.
Comments