Copy data to another sheet depending on input of currency

ianharper68

New Member
Joined
May 16, 2024
Messages
43
Office Version
  1. 2021
Platform
  1. MacOS
So I have a main worksheet that stores all my invoices in 3 currencies (£, $ & €) However I need to also add the same data to 3 separate sheets based on each currency.

So can anyone let me know what the formula would be? I have a cell in column F that has a drop down list to choose the currency.

I know it should be simple but I just can't get it to work :(
 
This is what I get when I enter value of 6789 in cell G8 of the MASTER SHEET. As you can see, it is copying all the data. However, it is also copying all the formulas from the MASTSER SHEET. This may give you unwanted results. You could copy the values only. Also have a look at the possible effects of any linked files.

NOSUPPLIERPO REFERENCEINVOICE NUMBERCURRENCYINVOICE VALUEEXA QtyHS CodesEX1COLLIELWHCBMLDMNTWGRWCratePalletCartonJiffyADRPODCOCOur Collection Order Ref:Label NumberDate Goods InDate Goods outFree DaysChargeable DaysDomestic Collection ChargesFSC %Domestic Handling In ChargesDomestic Storage Charges
JBS Fabrication Ltd123456GBP £ 6,789.0015112010085 1.02 0.49 125.00 125.001NoPE0001/01115-11-24#REF!3#REF! 35.00 5.25 8.75 25.20
Ah ok ... so is there a way of only copying the data up to and including column AB (Date Goods IN)? That way the formulas in the last columns AC to AL won't be affected.
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.CountLarge > 1 Then Exit Sub
    If Intersect(Target, Range("G8", Range("G" & Rows.Count).End(xlUp))) Is Nothing Then Exit Sub
    Application.ScreenUpdating = False
    Dim ws As String, lRow As Long
    ws = "MASTER SHEET" & " " & Split(Target.Offset(, -1), " ")(0)
    With Sheets(ws)
        lRow = .Range("C7", .Range("C" & .Rows.Count).End(xlUp)).Find(What:="", lookat:=xlWhole).Row
        Range("C" & Target.Row).Resize(, 26).Copy .Range("C" & lRow)
    End With
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
Hi Mumps,

Thanks for all your help but this isn't working it only copies data up to the invoice amount column ... all data beyond that column is not copied over .... as you can see there is additional data after the 456,987.00
Screenshot 2024-12-12 at 14.04.04.png


But when I go to the USD sheet it is not there ....

Screenshot 2024-12-12 at 14.04.37.png


I think I will just go back to the copy paste option :)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

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