Seandobson2402
New Member
- Joined
- Feb 9, 2018
- Messages
- 23
Hi All,
I want to learn how to do a VLOOKUP in VBA. But it seems rather confusing when reading different sites online. I wish to put the following formula into Worksheet "Weekly Stats" Cell "D3" -
1. Worksheets("Weekly Stats") is where the formula needs to go - into cell ("D3")
2. Worksheets("Weekly Stats").Range("A1") is the Value I wish to match in the VLOOKUP
3. Worksheets("My Stats").Range("C4:M56") is the range I wish to match my value to - column ("C") containing the Same data as ("Weekly Stats").Range("A1"), and column ("F") being the fourth column along from C (,4) for the information I wish to display in ("Weekly Stats").Range("D3")
4. I wish the value to be paste special values so no formula will be showing.
Is the above possible?
Thanks
Sean
I want to learn how to do a VLOOKUP in VBA. But it seems rather confusing when reading different sites online. I wish to put the following formula into Worksheet "Weekly Stats" Cell "D3" -
=VLOOKUP('Weekly Stats'!A1,'My Stats'!C4:M56,4,FALSE)
1. Worksheets("Weekly Stats") is where the formula needs to go - into cell ("D3")
2. Worksheets("Weekly Stats").Range("A1") is the Value I wish to match in the VLOOKUP
3. Worksheets("My Stats").Range("C4:M56") is the range I wish to match my value to - column ("C") containing the Same data as ("Weekly Stats").Range("A1"), and column ("F") being the fourth column along from C (,4) for the information I wish to display in ("Weekly Stats").Range("D3")
4. I wish the value to be paste special values so no formula will be showing.
Is the above possible?
Thanks
Sean