sparklines from text, Yes/NO, Win/Lose

ilcaa

Well-known Member
Joined
May 25, 2005
Messages
751
Office Version
  1. 365
Platform
  1. Windows
i have a column which is text, either Win or Lose. i wanted to see the streak, how can i make a spark chart based on these 2 text values? thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Convert WIN to 1 and LOSE to 0

In worksheet below sparkline range would be column B

Excel 2016 (Windows) 32 bit
A
B
C
1
formula in B2 copied down
2
win
1​
=(A2="win")*1
3
lose
0​
4
win
1​
5
lose
0​
6
win
1​
7
lose
0​
8
lose
0​
9
win
1​
10
win
1​
11
win
1​
12
lose
0​
13
win
1​
14
lose
0​
15
win
1​
16
win
1​
17
win
1​
18
19
Sheet: Sparky
 
Upvote 0
another formula that returns 1 or 0 is
=COUNTIF(A2,"win")
 
Upvote 0
If you prefer sparkline created with 1(win) and -1(loss) ..

use this formula instead
=IF(A2="win",1,-1)
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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