Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Reference:
http://groups.google.com/group/micro... 616e111e2f166 http://www.excelforum.com/showthread.php?t=606282 Dear Experts Columns E has folloiwng formula Code:
=IF(AND($A2=$C$2,$A2<=$D$2),IF(COUNTIF($B$2:$B2,$B2)=1,$B2,""),"") To do this, I wrote this formula but it show error Please help Code:
Sub Command1_Click() Dim iRow As Long, Lastr As Long With Sheets("sheet1") Lastr = .Range("A" & .Rows.Count).End(xlUp).Row For iRow = 2 To Lastr .Cells(iRow, "E").Value = "=IF(AND($A3=$C$2,$A3<=$D$2),IF(COUNTIF($B$2:$B3,$B3)=1,$B3,""),"")" Next iRow End With End Sub Column B has cash as 10,20,30,40 C1 has criteria1 date D1 has criteria2 date column E has unique values |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
i have a list of 3000 zip codes, can i convert to city, st format | Excel Worksheet Functions | |||
Need to convert list of 5 digit zip codes to ranges where possible | Excel Worksheet Functions | |||
HOW CAN I CONVERT EXCEL DATA TO BAR CODES? | Excel Discussion (Misc queries) | |||
HOW CAN I CONVERT EXCEL DATA TO BAR CODES? | Excel Discussion (Misc queries) | |||
Convert dates into codes | Excel Discussion (Misc queries) |