Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88030

Referencing another excel tab in VBA function

$
0
0

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.


Viewing all articles
Browse latest Browse all 88030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>