IF statement or cond'tl format to show sparklines

richardcarter

Board Regular
Joined
Dec 10, 2003
Messages
77
I have a worksheet with 3,000 rows.. and each row has a sparkline... as such, it takes up quite a bit of processing power (and a few seconds) to display them all after I make any changes to the formula which they are based on.

To make my life easier and speed things up a bit, I was wondering if anyone had come across any method to show only those sparklines which meet a certain condition... because I dont need to see all of them unless they meet a certain criteria.


I am thinking along the lines of "IF CELL A10 > CELL A11", then show the sparkline, otherwise don't show it.

Alternatively... a conditional format that would effectively do the same thing?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
You could add a Helper Column in the location of your choice with a formula such as:
Code:
=IF(A10>A11,"","HIDE")

Then add this code:
Code:
Sub Hide()

    Application.ScreenUpdating = False
     ' richardcarter set here the range of the helper column per example"AA1:AA3000"
    With ActiveSheet
        For Each cell In Range("AA1:AA3000")
            If cell.Value = "HIDE" Then
                cell.EntireRow.Hidden = _
                Not cell.EntireRow.Hidden
            End If
        Next
    End With
    Application.ScreenUpdating = True

End Sub

You can modify the code to fit your needs.
Would this work for you?
 
Upvote 0

Forum statistics

Threads
1,215,247
Messages
6,123,857
Members
449,129
Latest member
krishnamadison

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