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

Philistine needs help creating loop.

Updated: Hey everybody - new to excel and doin' my best, but could use your help. Dumbing it down for my own sake, I need to create a function that will check multiple criteria against a static reference, then add corresponding cells together into an eventual sum.

https://preview.redd.it/cqfqdsay25og1.png?width=566&format=png&auto=webp&s=d8dca20f059cee8d3c05170fae7c08a09d63ce2d

In English: If A2 = red and B2 = sunny and C2 = 20, D2 (+ all other values that passed this same logic test). Move to check next row. Else, move to check next row.

Since two of the rows (4 and 6) pass the logic test, the expected outcome would be 20

As a function: That's where you come in... Thanks in advance.

To the people saying SUMIFS - Yup! That's probably exactly what I'm looking for, but I said I'd update this to be clearer, so I am. I'm going to look into it a bit and try to understand how to implement it, then I'll mark this solved. Thank you!

submitted by /u/Weird-Rich4823
[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
#rows.com
#natural language processing for spreadsheets
#generative AI for data analysis
#Excel compatibility
#row zero
#Excel alternatives
#Excel
#SUMIFS
#function
#criteria
#logic test
#loop
#sum
#check
#static reference
#rows
#corresponding
#cells
#values