Forum Discussion
Replace item AUTO if not match in invoice No
majidsiddique52075 , you can't replace the value in another cell without VBA programming, formula returns the result of the calculations into the cell where this formula is.
As for formula, MATCH returns #N/A error if match is not found, with that error entire formula also returns the same error. You may wrap the MATCH with IFNA or IFERROR to handle such situation.
REPLACE(A19,1,11,F19) takes text from A19, replaces it's first eleven characters with the text from F19 and returns result into the cell where this formula is.
Hi SergeiBaklan
Thank to reply.
is there any possibility to highlight mismatch item with conditional formatting?
Thanks.
- SergeiBaklanMay 06, 2019Diamond Contributor
majidsiddique52075 , you may apply the rule with formula
=COUNTIF($F$3:$F$21,A3)=0
Please see attached
- majidsiddique52075May 06, 2019Copper Contributor
Thank boss, its working perfect, but i cannot apply vlookup, match or any other formula to count highlight cell. its also required for VBA coding. i really dont know VBA.
Thanks for the reply,
Thanks
- SergeiBaklanMay 06, 2019Diamond Contributor
majidsiddique52075 , to count them you may use
=SUMPRODUCT(--(COUNTIF($F$3:$F$21,$A$3:$A$21)=0))
or
=SUMPRODUCT(--NOT(ISNUMBER(MATCH($A$3:$A$21,$F$3:$F$21,0))))