Sorta complicated so will do my best to explain...
Here is what my data looks like (did my best to format it but came out a little weird, hope it's still readable):
So I'm trying to write a formula where if in column B, the number after the / is greater than the number before, and the name in column A is Alex, it adds the values in column C. I wrote a formula that says TRUE when I place it in row 4, but my formula is still not working.Please Login or Register to view this content.
Here is the formula I am using:
=SUM(IF(AND(IFERROR(RIGHT(B1:B6,LEN(B1:B6)-SEARCH("/",B1:B6))/LEFT(B1:B6,SEARCH("/",B1:B6)-1),0)>=1,A1:A6="ALEX"),C1:C6))
I press ctrl-shift-enter and I come back with 0.
When I put in the formula:
=IF(AND(IFERROR(RIGHT(B4,LEN(B4)-SEARCH("/",B4))/LEFT(B4,SEARCH("/",B4)-1),0)>=1,A4="ALEX"),C4)
I get 20
I'm not sure what I'm doing wrong here
Thank you.
Just wanted to add: I got this formula to work using nested if statements, but would rather use the AND function if possible since there are many more criteria, I just included these to simplify it.
Bookmarks