Rooksboy1979
New Member
- Joined
- Aug 21, 2014
- Messages
- 9
Hi all
This is my first post on here so please bear with me, but thank you for reading.
I would like to add an extra function into the formula below which was written by a work colleague who has since left the company. I have tried using my knowledge to amend it, but I am a novice compared to them and I cannot get it to work.
=IF(AND(N118="N/A",K118="N/A"),0,IF(AND(N118="N/A",K118<>"N/A"),K118,IF(AND(N118<>"N/A",K118="N/A"),N118,IF(ISERROR((K118-N118)),0,(K118-N118))))
When there are numbers in column N and K it calculates the variance between the two numbers correctly and displays the result in Column Q where the formula is located, also when there is an N/a written in both column N and K this shows correctly as a 0 in Column Q.
However what I would like it to also do in addition to the above function is when Column N has N/a and Column K has any number between 0 - 100 that it shows in column Q where the formula is located as 100. I would also like this to do the same in reverse if there was an N/a in Column K and a number between 0 - 100 in Column N. This part of the function is to show that an N/a vs any number is 100% different (i.e 100% out of variance)
I hope this all makes sense and any help you can give would be greatly appreciated.
Regards
This is my first post on here so please bear with me, but thank you for reading.
I would like to add an extra function into the formula below which was written by a work colleague who has since left the company. I have tried using my knowledge to amend it, but I am a novice compared to them and I cannot get it to work.
=IF(AND(N118="N/A",K118="N/A"),0,IF(AND(N118="N/A",K118<>"N/A"),K118,IF(AND(N118<>"N/A",K118="N/A"),N118,IF(ISERROR((K118-N118)),0,(K118-N118))))
When there are numbers in column N and K it calculates the variance between the two numbers correctly and displays the result in Column Q where the formula is located, also when there is an N/a written in both column N and K this shows correctly as a 0 in Column Q.
However what I would like it to also do in addition to the above function is when Column N has N/a and Column K has any number between 0 - 100 that it shows in column Q where the formula is located as 100. I would also like this to do the same in reverse if there was an N/a in Column K and a number between 0 - 100 in Column N. This part of the function is to show that an N/a vs any number is 100% different (i.e 100% out of variance)
I hope this all makes sense and any help you can give would be greatly appreciated.
Regards