Way to verify information

Kiloelectronvolt

Board Regular
Joined
Oct 5, 2015
Messages
81
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference:

Business name in A1 and address in B1.

Example: Ebay 1123 Fake Street

On my second sheet, I want to type in Ebay, and if I type in the wrong address, it will highlight the address red .
 
Hi Punit!

I think we got crossed since the last formula. It should only turn red once the wrong number is entered.

10010, 10100, and 10200 are all ebay and should stay unformulated.

If you typed ebay and 10300 it should turn red, because that doesn't match.
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Book1
ABCDEFG
1ebay10010ebay10019FALSE
2ebay10100
3ebay10200
4ayush10300
5ayush10400
Sheet1
Cell Formulas
RangeFormula
G1G1=NOT(ISNUMBER(MATCH(LEFT(F1,3)+0,TRUNC(1/(1/(IF(E1=$A$1:$A$5,$B$1:$B$5)))/100),0)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F1Expression=NOT(ISNUMBER(MATCH(LEFT(F1,3)+0,TRUNC(1/(1/(IF(E1=$A$1:$A$5,$B$1:$B$5)))/100),0)))textNO
 
Upvote 0
Punit, I got it to work with your numbers, but not mine.

After reviewing, I see your column B is 5 digits, whereas my column B is just the 3 digits. If we remove the LEFT,3 command, I think it will work? But I tried removing it and it broke my formula. IDK how to remove it properly.
 
Upvote 0
Book1
ABCDEFG
1ebay100ebay10301TRUE
2ebay101
3ebay102
4ayush103
5ayush104
6
Sheet1
Cell Formulas
RangeFormula
G1G1=NOT(ISNUMBER(MATCH(LEFT(F1,3)+0,IF(E1=$A$1:$A$5,$B$1:$B$5),0)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F1Expression=NOT(ISNUMBER(MATCH(LEFT(F1,3)+0,IF(E1=$A$1:$A$5,$B$1:$B$5),0)))textNO
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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