KayJay0618
New Member
- Joined
- Jul 20, 2016
- Messages
- 40
I don't have a clue how to search for something to help me with this problem. I have a worksheet with 5 columns (num, FY-Qtr, OP, UP, Qtr Result). I need to populate the Qtr Result column with the word Keep IF the total of the OP and UP columns for an FY-Qtr and Num is greater than zero. If there is nothing but 0 in the OP and UP columns for a Num and FY-Qtr I need to populate the Qtr Result column with Delete. I've attached a sample. You can see that for num 4071151, there are numbers greater than zero on all 5 rows for FY15-Q3 so I would want to populate column E with Keep on all 5 of those rows. I would also want Keep in column E for all 6 rows for FY15-Q4 because 2 of the rows have numbers greater than 0 in the OP or UP column. But column E for all of the FY16-Q1 rows for num 4071151 should be populated with the word Delete because none of the OP/UP columns for FY16-Q1 have numbers greater than 0. I have several thousand records I need to resolve QUICKLY and I just can't seem to figure this one out. I'm thinking it's some sort of sumproduct formula but I'm really struggling with figuring it out and maybe I'm off track. Thank you in advance!
[TABLE="width: 418"]
<tbody>[TR]
[TD]Num
[/TD]
[TD]FY-QTR
[/TD]
[TD]OP
[/TD]
[TD]UP
[/TD]
[TD]Qtr Result
[/TD]
[/TR]
[TR]
[TD]4071151
[/TD]
[TD]FY15-Q3
[/TD]
[TD]0
[/TD]
[TD]35.68
[/TD]
[TD]Keep
[/TD]
[/TR]
[TR]
[TD]4071151
[/TD]
[TD]FY15-Q3
[/TD]
[TD]0
[/TD]
[TD]66.45
[/TD]
[TD]Keep
[/TD]
[/TR]
[TR]
[TD]4071151
[/TD]
[TD]FY15-Q3
[/TD]
[TD]0
[/TD]
[TD]31.17
[/TD]
[TD]Keep
[/TD]
[/TR]
[TR]
[TD]4071151
[/TD]
[TD]FY15-Q3
[/TD]
[TD]0
[/TD]
[TD]31.17
[/TD]
[TD]Keep
[/TD]
[/TR]
[TR]
[TD]4071151
[/TD]
[TD]FY15-Q3
[/TD]
[TD]0
[/TD]
[TD]31.17
[/TD]
[TD]Keep
[/TD]
[/TR]
[TR]
[TD]4071151
[/TD]
[TD]FY15-Q4
[/TD]
[TD]0
[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