Once the VBA function conditionals are met, I want the function to execute the normal excel formula below:
=SUMIF('Barclays - Interest'A:C, CONCATENATE(A1,"-",B1),'Barclays - Interest'C:C)
Function RECON (AccountName, Broker, Forex)
If AccountName = "Barclays" Then
RECON = SUMIF('Barclays - Interest'A:C, CONCATENATE(AccountName,"-",Broker),'Barclays - Interest'C:C)
The above code is what I'd essentially like to achieve, any ideas on a workaround to this? (This failed for me each time) Ideally I'd like to keep the formula format the same so colleagues without VBA knowledge can easily manipulate it based off future data changes.