G
Guest
Sorry to bother. I wonder whether anyone has a solution here... I am trying to create an array formula in VB to give some quick stats for a large database... finding unique values etc using an array forumula i have understood... but i need to create a statistic involving multiple criteria (AND / *), one of which is a date reference... except that it is dynamic in that the value to use must be a whether a date in a column is greater than a year ago from the date of running the stats vb code
Column 'H' contains date data - not all cells have an entry, and other columns contain other information... The array formula works well involving the other data requirements, but i am stuck on 2 issues
1. is there a means of including more than one substring - I am using
=SUM(NOT(ISERROR(SEARCH("something",sheet1!range))) - but would like to count for strings "something" OR "somethingelse" ie 2 different strings - can it be combined ?? ie SEARCH("something","somethingelse",sheet1!range) ?
2. I need to count those with a date value >1 year from the current date at execution..
adding *(sheet1!range<(Date - 365)) will not work... Is there a valid syntax for referencing date formula in VB in array forumula, or including a date formula result generated in a cell in the workbook... This would save a formal algorithm to search the data... Alternatively, is there a way of just counting the number of selected entries if i use an advanced filter to select the rows that fullfill all the criteria - in VB i mean..
Many thanks in anticipation
Mike
Column 'H' contains date data - not all cells have an entry, and other columns contain other information... The array formula works well involving the other data requirements, but i am stuck on 2 issues
1. is there a means of including more than one substring - I am using
=SUM(NOT(ISERROR(SEARCH("something",sheet1!range))) - but would like to count for strings "something" OR "somethingelse" ie 2 different strings - can it be combined ?? ie SEARCH("something","somethingelse",sheet1!range) ?
2. I need to count those with a date value >1 year from the current date at execution..
adding *(sheet1!range<(Date - 365)) will not work... Is there a valid syntax for referencing date formula in VB in array forumula, or including a date formula result generated in a cell in the workbook... This would save a formal algorithm to search the data... Alternatively, is there a way of just counting the number of selected entries if i use an advanced filter to select the rows that fullfill all the criteria - in VB i mean..
Many thanks in anticipation
Mike