I've attached my current IF statement below. It leaves the current worksheet, goes to another, looks for a code match and if found then returns the $ amount attached to the code. It works very well.
=IF(ISNA(VLOOKUP(C4,'Payment Info'!A$2:F$10000,4,FALSE)),0,VLOOKUP(C4,'Payment Info'!A$2:F$10000,4,FALSE))
However, what I then need to happen is for the figure that was returned to be paste-special-added into another cell. I ONLY need this to happen if there is a code match from the original if statement.
I know that the IF statement is a function and the paste-special is a process but is there a way to marry them together in one statement OR is there a way to trigger the paste-special from the IF statement. Any help is appreciated.
=IF(ISNA(VLOOKUP(C4,'Payment Info'!A$2:F$10000,4,FALSE)),0,VLOOKUP(C4,'Payment Info'!A$2:F$10000,4,FALSE))
However, what I then need to happen is for the figure that was returned to be paste-special-added into another cell. I ONLY need this to happen if there is a code match from the original if statement.
I know that the IF statement is a function and the paste-special is a process but is there a way to marry them together in one statement OR is there a way to trigger the paste-special from the IF statement. Any help is appreciated.