Index match vba

nair.harish

New Member
Joined
Mar 2, 2010
Messages
40
Hi

I have a userform with 4 refedit functions, i worked out something like this
Private Sub OK_Click()

Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = "RECO"

ActiveCell.FormulaR1C1 = _
"=INDEX('PHO STA JUNE'!C[4],MATCH('7282'!RC[-3],'PHO STA JUNE'!C[-3],0))"


End Sub

but i dont know how to link it to the ok button, secondly
the 4 refedit functions look like this
1) select supplier statement invoice numbers

2) select supplier amount

3) select our invoice numbers

4) select our amount

now what i really want to do is match supplier invoice number and amount with ours and if any numbers not found the invoice number is outputted with the amount saying that the invoice number is incorrect or not there, and if the amount matched with each other after subtracting is not zero, then it is returned separately(a simple reconcilation), right now i work with the index and match simultaneously, if this userform works then it would really be gr8.... can someone help??
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,214,861
Messages
6,121,973
Members
449,059
Latest member
oculus

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