# Target Calculation formula

#### theraindew

##### New Member
Below is a sample table i'm working on. We have an opening number for each member in B and a target closing number in C. Column D is the actual closing number. e.g. Mem5 target is 17,000 and closing is 17,000, Column E should show 100%.
Mem4 target is 18,400, but opening and closing are same at 92,000, column E should show 0%.
I just cannot wrap my head around how to achieve this. Appreciate any help on this.

Thank you

Excel 2013/2016
ABCDE
1NameOpening NumberTargetClosing NumberTarget achieved %
2Mem1 90,000 18,000 75,000
3Mem2 75,000 15,000 72,000
4Mem3 80,000 16,000 40,000
5Mem4 92,000 18,400 92,000
6Mem5 85,000 17,000 17,000
7Mem6 97,000 19,400 25,000
8Mem7 76,000 15,200 76,000
9Mem8 91,000 18,200 36,000
10Mem9 87,000 17,400 17,400
11Mem10 89,000 17,800 50,000

<tbody>
</tbody>
Sheet1

### Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

#### Scott T

##### Well-known Member
Try

Code:
``=IF(C2=D2,100%,IF(D2=B2,0%,C2/D2))``

#### AlanY

##### Well-known Member
am i right to assume that based on your sample data all are at 0% with the exception of Mem5 & 10 at 100%?

#### theraindew

##### New Member
Thanks. This seems to work!

Excel 2010
ABCD
1Opening NumberTargetClosing NumberTarget achieved %
2 10,000 2,000 10,000 0%
3 10,000 2,000 9,000 22%
4 10,000 2,000 8,000 25%
5 10,000 2,000 7,000 29%
6 10,000 2,000 6,000 33%
7 10,000 2,000 5,000 40%
8 10,000 2,000 4,000 50%
9 10,000 2,000 3,000 67%
10 10,000 2,000 2,000 100%
11 10,000 2,000 1,000 200%

</tbody>
Sheet1

#### theraindew

##### New Member
Try

Code:
``=IF(C2=D2,100%,IF(D2=B2,0%,C2/D2))``

Thanks. This seems to work!

#### theraindew

##### New Member
am i right to assume that based on your sample data all are at 0% with the exception of Mem5 & 10 at 100%?

No, rest of them have reduced the number by some margin, even though they haven't achieved the target. Achieved % cannot be 0% for anyone except Mem 4 & 7. Their numbers have not reduced by any margin.