VBA for copy/pasting as VALUE

manc

Active Member
Joined
Feb 26, 2010
Messages
340
Good day Demigods,

I have 10 rows that lookup their values from vlookup table depending on user selection.

These 10 rows are then SUM'd.

Because the values are from lookup tables, the SUM is giving an incorrect result.

When I enter the exact same values manually, the answer is correct.

I have checked all cells that are used in the lookup table and ensured formating is consistant throughout, i.e. set to Number, but still the same.

To solve the issue, I thought I could use the vlookup in an adjacent column to display the 10 rows and then have VBA copy the values from said column and paste as values in the actual column that they are needed in. My brain says that this should work and that it would result in SUM being calculated correctly.

However, I need help with the VBA, and this is where you mighty fine people take centre stage.

Alternatively, if there is a solution to the SUM issue, please feel free to share.

Any help is greatly appreciated and I thank you in advance for your time.

Yours sincerely
Manc
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,203,650
Messages
6,056,552
Members
444,873
Latest member
martins23

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