Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Let's say your formula in the worksheet is:
=COUNTIF(A$1:A$10,"12/6/2006") First, without VBA use =COUNTIF(A$1:A$10,D2) and put the date in D2 or with VBA: Sub update() Dim s1 As String, s2 As String, s3 As String s1 = "=countif($A$1:$A$10," s2 = """12/6/2006""" s3 = ")" Range("B9").Formula = s1 & s2 & s3 End Sub and replace s2 as needed or set s2 with an inputbox. -- Gary's Student "Kelvin9811" wrote: I want to create a macro that changes the date in a specific formula. I have a spreadsheet and I want to find out how many files where received on a specific date. Any help will be greatly appreciated |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
How to remove excel macros still there after normal delete? | Excel Discussion (Misc queries) | |||
I deleted all macros in Excel but still get dialog box | Excel Discussion (Misc queries) | |||
Are macros created in Excel 2003 compatible with Excel 5.0/95? | Excel Discussion (Misc queries) | |||
How do I update Excel 2000 macros to work in Excel 2002? | Excel Discussion (Misc queries) |