Look up or Search Tool Needed

jwmoorear

New Member
Joined
Feb 8, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
I apologize for my inexperience with excel.

I am trying to create either macro or formula that will allow me to input data into one cell (A1) and in another cell (B1) spit out Found or Not Found.
The data in A1 is to be a serial number and B1 will validate if that serial is on the other Tab that has the master data.

I would like to have a formula or macro that will search the entire "master data" tab for the serial in A1 to validate if it is accurately input or exists.

Does this make sense?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Which column on the Master Data sheets holds the serial number?
 
Upvote 0
=countif() should do that

but an example of the layout would help here for an exact function

=IF( countif( Range in the master data sheet , A1 )=0 , "Not Found","Found")


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
Hi
Welcome in here
Try
input data in sheet3
VBA Code:
 Sub test()
 Dim a
 Dim i&
a = Sheets("master data").UsedRange
For i = 1 To Sheets("master data").UsedRange.Rows.Count
If Application.IsNumber(Application.Match(Sheets("sheet3").Range("A1"), Application.Index(a, i, 0), 0)) Then
Sheets("sheet3").Range("B1") = "found"
End If
Next
 End Sub
 
Upvote 0
Which column on the Master Data sheets holds the serial number?
It is several columns that hold the data for different items. I would like to just look up the serial number regardless of item name.
 
Upvote 0
=countif() should do that

but an example of the layout would help here for an exact function

=IF( countif( Range in the master data sheet , A1 )=0 , "Not Found","Found")


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
I will try and upload but I am working off a government computer with several restrictions.
 
Upvote 0
Ok, how about
Excel Formula:
=IF(COUNTIFS('Master data'!A12:Q1613,A1),"Found","Not found")
 
Upvote 0
Ok, how about
Excel Formula:
=IF(COUNTIFS('Master data'!A12:Q1613,A1),"Found","Not found")
So far that is working just fine. Is there a way to make sure it is finding the information accurately? Like, does it find it exactly as it is or will it read everything and find something similar? Does that make sense? I don't want to type in #2345 and it find 2345.
 
Upvote 0

Forum statistics

Threads
1,215,783
Messages
6,126,876
Members
449,346
Latest member
Janspook03

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