Need help with formula

greegan

Well-known Member
Joined
Nov 18, 2009
Messages
625
Hello to all and thank you for your continued assistance

On a daily basis we paste spec - value/numbers data onto one particular worksheet in column B
Column A has the following
Code:
A5
=IF(B5="","-",R5-SUM(S5:AA5))
down to A120
A125
=SUM(A5:A120)
A126
=IFERROR(A125/A126,"-")
A127
=IFERROR(A125/A126,"-")
A128
7:30:00 AM
A129
=IFERROR(A127/A128,"-")

On another sheet it will have a formula to pick up the value in A129 based on the date showing in C1 on the first sheet.
We then copy paste values and the next day we repeat.

I may be lazy but selecting columns A:AC to paste in B:AD seems like its a waste of time if we can use one formula on the second worksheet for all of the formulas above. I'm guessing it would involve an array formula ie {} but I'm not familiar enough with array formulas to do this correctly. So I come to seek help from the experts.

Thank you

-- g
 
Last edited:

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

ZAX

Well-known Member
Joined
Jul 5, 2012
Messages
715
Hi greegan,

Open Visual Basic , insert a new module and enter the following code which will copy columns A:AC and paste
the values in columns B:AD in the same worksheet , try it .
Rich (BB code):
Sub copy_values()
Columns("A:AC").Select
Selection.Copy
Columns("B:AD").Select
ActiveSheet.PasteSpecial Format:=3, Link:=1, DisplayAsIcon:=False, _
IconFileName:=False
End Sub

mr ZAX
 

greegan

Well-known Member
Joined
Nov 18, 2009
Messages
625
Wow, this is an old post and my work finally put me back on this project. Thank you for this post and answer. It worked as expected.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,481
Messages
5,601,918
Members
414,482
Latest member
morkar

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
Top