Hi,
I'm looking for help on how to approach programming; not sure which VBA method I should be researching get outcome I am looking for. Scenario is that I will have a spreadsheet with multiple rows of buy/sell trade details for portfolio management. Unfortunately our in-house reporting software can't generate report I want, so I'm pushing it out to Excel for client needs. Some trade details will be automation, but others I will need to back into. I can get gross amount, but if the trade is a buy, I will have to back out commission, and if trade is a sell, I will have to add commission.
So if cell A1 is a 'by' transaction, I will need to take gross amount (B1) and subtract commission (C1). Conversely, If A1 is a 'sl' transaction the formula will be =B1+C1. There will also be other simple math to do, but it will all be based on what side trade is on, so it needs to start; IF this, then that... Would this be a loop of some kind, or is a better approach to do the FunctionIfCellContainsText ? I'm not confident in either alternative, but any guidance on where to start would be helpful!
Thank you!
Nina
I'm looking for help on how to approach programming; not sure which VBA method I should be researching get outcome I am looking for. Scenario is that I will have a spreadsheet with multiple rows of buy/sell trade details for portfolio management. Unfortunately our in-house reporting software can't generate report I want, so I'm pushing it out to Excel for client needs. Some trade details will be automation, but others I will need to back into. I can get gross amount, but if the trade is a buy, I will have to back out commission, and if trade is a sell, I will have to add commission.
So if cell A1 is a 'by' transaction, I will need to take gross amount (B1) and subtract commission (C1). Conversely, If A1 is a 'sl' transaction the formula will be =B1+C1. There will also be other simple math to do, but it will all be based on what side trade is on, so it needs to start; IF this, then that... Would this be a loop of some kind, or is a better approach to do the FunctionIfCellContainsText ? I'm not confident in either alternative, but any guidance on where to start would be helpful!
Thank you!
Nina