Formula needed to transfer figures from one sheet to another

pedro-egoli

Well-known Member
Joined
Apr 25, 2004
Messages
1,217
Office Version
  1. 2016
Platform
  1. Windows
I have a workbook wih 2 worksheets and the source sheet date (sheet 2) only changes intermittently whereas on recipient sheet (sheet 1) changes daily
Sheet 1 looks like this
Book1
ABCDEFGHI
319/06/202020/06/202021/06/202022/06/202023/06/202024/06/202025/06/202026/06/2020
4$53,070$42,479$42,479$42,479$42,479$42,479$42,479$42,479
5$53,070$53,070$53,070$53,070$53,070$53,070$42,479$42,479needed
Sheet1
Cell Formulas
RangeFormula
A4A4=Sheet2!C5
B4:H4B4=LOOKUP(99^99,Sheet2!$C:$C)

And sheet 2
Book1
ABC
2$647,590
3
415/06/2020$692,324$44,734
519/06/2020$700,660$53,070
625/06/2020$690,069$42,479
Sheet2
Cell Formulas
RangeFormula
C4:C6C4=B4-$A$2


Any help in providing a formula that will get the result needed in sheet 1 appreciated.
I experimented with formula as you can see without success.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
How about, in A4 copied right
=INDEX(Sheet2!$C$4:$C$10,MATCH(A$3,Sheet2!$A$4:$A$10,1))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Fluff I need your assistance again.
I tried to construct an Index/match formula to transfer other details from one sheet to another based on above formula provided by Fluff (which works as intended) however, I have run into trouble.
Situation is that I have a sheet “Accountbalance” part of which contains the data I need to transfer to sheet called “Daily balances”.
“Accountbalance” is imported from the web in .CSV format.
This is what I have used
Account balances for centrelink Final Version-1.xlsm
BN
328/06/2020
4$301,408
5$87,204
6$12,780
Daily balances
Cell Formulas
RangeFormula
BN5BN5=IF(BN3="","",INDEX(AccountBalance!$D$2:$D$3,MATCH(BN$3,AccountBalance!$G$1,1)))
BN6BN6=IF(BN3="","",INDEX(AccountBalance!$D$3,MATCH(BN$3,AccountBalance!$G$1,1)))

On "Accountbalance" sheet I have
Account balances for centrelink Final Version-1.xlsm
DEFG
1available balance 28/06/2020
287203.62
312780.37
AccountBalance

The problem is that when I change date in G1 to TODAYS date (29/6/20) this is what happens on sheet "Daily balances"
Account balances for centrelink Final Version-1.xlsm
BNBO
328/06/202029/06/2020
4
5#N/A$87,204
6#N/A$12,780
Daily balances
Cell Formulas
RangeFormula
BN5:BO5BN5=IF(BN3="","",INDEX(AccountBalance!$D$2:$D$3,MATCH(BN$3,AccountBalance!$G$1,1)))
BN6:BO6BN6=IF(BN3="","",INDEX(AccountBalance!$D$3,MATCH(BN$3,AccountBalance!$G$1,1)))

Is there a way to have date change in G1 yet retain the value as at each individual day, Say incorporate a Paste Special /Value?
Any assistance appreciated
 
Upvote 0
Further to above I have been searching for an answer and came across this code which has Paste Special /value into next column (supposedly!!!)
VBA Code:
Sub Copy()

Sheets("accountbalance").Range("d2:d3").Copy
Sheets("Daily balances").Range("BO5:BO6").End(xlToRight).Offset(, 1).PasteSpecial xlPasteValues
    Application.CutCopyMode = False
        Application.CutCopyMode = False
    Selection.NumberFormat = "$#,##0.00"
    Selection.NumberFormat = "$#,##0.0"
    Selection.NumberFormat = "$#,##0"


End Sub
My worksheet is currently filled at column BN and when I ran code it pasted details into column "RJ5:RJ6" .
If I ran it again it moved to cells RK5:RK6 so it works but not to what I need.
How do I twig the code so that when I run it the first fime it fills cells BO5:BO6?
Thanks
 
Upvote 0
Problem solved .
Realised I had the formula still in cells and once deleted the code works as I want
Thanks to anyone who looked to help here
 
Upvote 0

Forum statistics

Threads
1,215,692
Messages
6,126,228
Members
449,303
Latest member
grantrob

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