Dynamic Formatting of Range returned by Filter Function

Bedlam

New Member
Joined
Feb 18, 2020
Messages
49
Office Version
  1. 365
Platform
  1. Windows
Hi
I have filter functions in place that may return between 1-2000 rows of data for about 90 columns. One of the irritating things is it returns dates simply as numbers, also blanks are returned as zeroes. Sometimes there are blank dates too. I would like to set formats say for the first row and these to be dynamically extrapolated for subsequent rows. I don't want a macro answer as these are being generated in too many files with the same layout for me to have to go in and run macros. (Also they are being generated by an external piece of software - Alteryx Designer). So my questions are -
Is it possible?
How do I do it without using VBA?

Regards
Mark
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Why not just format the entire column as a date?
 
Upvote 0
Why not just format the entire column as a date?
I have done that at present but was getting hit with Excel memory errors. So I manually set formatting for all relevant areas to about 2k rows.
 
Upvote 0
Are you changing the cell format, or using conditional formatting?
As I would not expect any problems simply by changing the cell format for an entire column.
 
Upvote 0
Hi

I used both. I set conditional formatting for zero value dates to another text colour. I set date fields to various date formats.
 

Attachments

  • Capture.PNG
    Capture.PNG
    65.2 KB · Views: 10
Upvote 0
What is the formula you are currently using to get the data?
 
Upvote 0
Hi
I think that is where I need to adjust =FILTER('All Cases'!A2:CG1048576,('All Cases'!BS2:BS1048576=Dates!B3))
ie replace the 1048576 with something more reasonable like 2000.

Regards

mark
 
Upvote 0
I set conditional formatting for zero value dates to another text colour.
Instead of Conditional Formatting for the date columns try a custom format like this

dd-mmm-yyyy hh:mm;;

1660738979164.png
 
Upvote 0
You can get rid of the 0s instead of blanks like
Excel Formula:
=LET(f,FILTER('All Cases'!A2:CG1048576,('All Cases'!BS2:BS1048576=Dates!B3)),IF(f="","",f))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

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