kumara_faith
Well-known Member
- Joined
- Aug 19, 2006
- Messages
- 923
- Office Version
- 365
Hi,
I have the following table:
In column G, I am trying to return as 0 if any of the value in column D equals to any of the value in column C. The first cell G3 seems to return the right result but cell F4 and F5 seems to return the incorrect value.
The correct results are as follows:
Appreciate any help to rectify the formula.
I have the following table:
Book1 | |||||||
---|---|---|---|---|---|---|---|
C | D | E | F | G | |||
2 | Leave Type | Leave | Task 1 | Task 2 | Check | ||
3 | AL | AL | 10 | 10 | 0 | ||
4 | EL | 5 | 20 | ||||
5 | MC | 6 | 20 | ||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G3:G5 | G3 | =IF(D3=C3:C5,0,SUM(E3:F3)) |
Dynamic array formulas. |
In column G, I am trying to return as 0 if any of the value in column D equals to any of the value in column C. The first cell G3 seems to return the right result but cell F4 and F5 seems to return the incorrect value.
The correct results are as follows:
Book1 | |||||||
---|---|---|---|---|---|---|---|
C | D | E | F | G | |||
8 | Leave Type | Leave | Task 1 | Task 2 | Check | ||
9 | AL | AL | 10 | 10 | 0 | ||
10 | EL | 5 | 5 | ||||
11 | MC | 6 | 6 | ||||
Sheet1 |
Appreciate any help to rectify the formula.