Copy Formula Down On Cell Entry

goss

Active Member
Joined
Feb 2, 2004
Messages
372
Hi all,

Using mix of Excel 2003/2010.

I would like to perform a simple check for duplication

I have a dynamic name range setup that will expand as my list of invoices grows
lstInvoices = Data!$A$2:INDEX(Data!$A:$A,COUNTA(Data!$A:$A))

And I have a formula to check for duplicates
=IF(COUNTIF(lstInvoices,A2)>1,"Duplicate","") <-Formula to copy down

I would like to copy the formula down from B2 to B3 when a user make an entry in A3 and so forth as additional orders are entered in Col A.

How can I do this?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I think data validation would work
Formula to be used is =COUNTIF(A:A,A1)=1
If number only =AND(COUNTIF(A:A,A1)=1,ISNUMBER(A1))
If text only =AND(COUNTIF(A:A,A1)=1,ISTEXT(A1) )

Apply to column but be aware that data already entered may have to be checked visually or a sort used to bring duplicates together. Any new data will have to satisfy the condition.
 
Upvote 0
Something like this should work for you:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Application.Intersect(Target, Range("A:A")) Is Nothing Then
        Range("B" & Target.Row - 1).Copy
        Range("B" & Target.Row).PasteSpecial
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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