2 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

I'm receiving a 0 as the result of a sum formula where the result should be 4

https://preview.redd.it/3jsrusjzk32h1.jpg?width=1440&format=pjpg&auto=webp&s=43bbeec15e83cd8f893474407d3a463391a246c7

https://preview.redd.it/axuc9tjzk32h1.jpg?width=666&format=pjpg&auto=webp&s=518b7afee9309ac20e52f6aba03358f7ff526a28

This is a golf spread sheet I created to track my stats. Each column starting with E is a separate round of golf. In E143, I'm trying to calculate scrambling success for the round (see full formula below), where scrambling success is defined as the number of times with par on the hole and 1 or fewer putts (meaning you missed the green, but still got a par). Yes, I'm going to add birdie scrambles to this at a later date, but right now, I need to solve for par scrambling success. The hole numbers are in column A.

To calculate this, I need two comparisons:

  1. My score must be = par, so I'm comparing my score in E5:E23 (note the break in E14) from the par for the hole in B5:B23 (note a break in B14 as well).
  2. Putts must be less than 2, so I'm evaluating E70:E87 (note there is no break in this array) < 2

If both are true, then 1, else 0, and then I want to sum those numbers for the total times I successfully scrambled that round. I'm using the formula below, but it's coming up with a 0 for the total when I should be getting 4 (hole numbers 4, 5, 6, and 12). Can anyone help me understand why?

=SUM(IF(AND(VSTACK($B$5:$B$13,$B$15:$B$23)=VSTACK(E$5:E$13,E$15:E$23),(E$70:E$87)<2),1,0))

submitted by /u/Opposite_Example6930
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#Excel alternatives for data analysis
#natural language processing for spreadsheets
#generative AI for data analysis
#financial modeling with spreadsheets
#AI formula generation techniques
#formula generator
#rows.com
#Excel compatibility
#Excel alternatives
#golf
#spreadsheet
#scrambling success
#par
#putts
#score
#formula
#E5:E23
#B5:B23
#summing
#VSTACK