Search of values doesn't work and gives errors

Ardin

New Member
Joined
Jan 27, 2021
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I'm currently working on a kind of CRM system in excel, and I just wanted to have a function to see if the name in "U2" equals one of the names in "V2:$FB$" then give an error or false or something. This works with several kinds of formula, however, when I copy it to the next cell, so then it becomes if the name in "V2" equals one of the names in "W2:$FB$", then it gives errors like "#spill!" and other ones as well with different formulas. When I searched it up, I saw because it was blocking the values, however, I am putting the formula in U1/V1 etc., so how can it be blocked?

Does someone maybe have a solution or a formula which I can use?

Thanks in advance!

Ardin
 
I've got the inputs to the formula the wrong way round, it should be the range first then the criteria.
Excel Formula:
=IF(COUNTIF(V2:FB10, V2)>0, "Found", "Not found"
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
In this case
Excel Formula:
=IF(ISNUMBER(SEARCH(B2,C2:O2)),"Found","Not found")
Just Enter
Yess it works for first one, however, for "C2", I want to do it from D2:O2, however, then it gives the #SPILL! error. Do you know how to do that?
 

Attachments

  • Schermafbeelding 2021-01-28 om 11.54.46.png
    Schermafbeelding 2021-01-28 om 11.54.46.png
    92.8 KB · Views: 2
  • Schermafbeelding 2021-01-28 om 11.54.55.png
    Schermafbeelding 2021-01-28 om 11.54.55.png
    105.1 KB · Views: 2
Upvote 0
I've got the inputs to the formula the wrong way round, it should be the range first then the criteria.
Excel Formula:
=IF(COUNTIF(V2:FB10, V2)>0, "Found", "Not found"
Great, thank you so much, it works!!
Have a great day!
 
Upvote 0
No problem.

Sorry about the mix up.:)
 
Upvote 0

Forum statistics

Threads
1,215,522
Messages
6,125,312
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top