Forum Discussion

alexx1202's avatar
alexx1202
Copper Contributor
Apr 15, 2023
Solved

Excel novice struggling with formulas please help

I have a workbook used to journal all my stock trades recording everything from trade duration, entry/exit price, stock symbol, win/loss etc.   I record each individual trade’s data into 1 of 3 sep...
  • Patrick2788's avatar
    Apr 15, 2023

    alexx1202 

    1. Right off the bat, this workbook is poorly optimized.

     

    2. The workbook makes use of functions not available in your version of Excel.  From the screenshots you've posted, it looks like you're working in Excel 2016.  Functions like MINIFS, MAXIFS, LET, LAMBDA, etc. are not available.

     

    Any time MAXIFS or MINIFS are used, you'll need to arrange them like ctrl+shift+arrays.  For example,:

     

    {=MAX(MAX(IF(StockSymbol=A4,IF(StockResult="W",IF(StockProfitF>0,StockProfitF)))),MAX(IF(LiveSymbol=A4,IF(LiveProfitF>0,LiveProfitF))))}

     

     

    I've fixed the formulas in G, M, and P.  The formulas are using dynamic ranges so the calculation won't be bogged down by entire column references (e.g. F:F, H:H).

    The part I don't understand about how these formulas was written is why would the freelancer use newer functions (and even LAMBDA) but not optimize the workbook? There's no spilling and the referencing is lazy.  The COUNTIFS and SUMIFS are fine but there's no need to refer to the entire column for the criteria.

     

    I fixed the first few formulas then took a step back and looked at the rest of the workbook.  It's going to take a bit of time to overhaul this workbook but it's do-able and it will calculate a lot faster if everything is fixed.

     

    Attached is a sample of a few things I've re-done.

     

Resources