Noob needs help with function

Occasional Contributor

The main job it should do:

Fill column D with value from column CQ but only if value in A = CP

Bonus: if there is no match between A and CP  it should show 0


I have tried VLOOKUP and IF  function and i'm probably not using them correctly.

Tried and failed attempts:








=IF($A2=CP:CP;CQ:CQ; [0])

Screenshot 2022-07-14 121433.png

7 Replies



Is this similar to what you are looking for?

index and match.JPG



Yes this looks like what i'm looking for but i can't seem to test it because i get this annoying ' sign before formula that seem to break it and i don't know how to remove it.
PS. Just deleting it doesn't work since it always shows back up upon finishing the formula.



Previous issue was solved by clearing format


The formula you provided shows up as an error(red boxed)



Your sample file is too small, i can't see all the details. Can you attach a picture which shows the important data - without sensitive data - in a size similar to the picture of my previous post?



I really do appreciate you trying to help me, thank you mate.

This screenshot should show you all the data involved.

If there is some kind of hidden data that could provide more information let me know how to retrieve it.


Still need help with this.
best response confirmed by Souke555666 (Occasional Contributor)

@Souke555666 The formulas you mentioned in your initial posting used the semi-colon to separate the arguments. Try replacing the commas in the formula you were given by semi-colons.

Thus, like this: