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 .
 
Try this in

Book4
AB
1ebay11101
2
3
4
5
6
7
8
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1Expression=LEFT(VLOOKUP(A1,Sheet2!A:B,2,0),3)+0<>TRUNC($B1/100)textNO
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try this in

Book4
AB
1ebay11101
2
3
4
5
6
7
8
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1Expression=LEFT(VLOOKUP(A1,Sheet2!A:B,2,0),3)+0<>TRUNC($B1/100)textNO

With one slight modification, changing ($B1/100) to ($E1/100)

IT WORKED. Dude. Thank you. I literally had the hardest time trying to explain this situation. I was trying to spare you some of the boring details. lol..


THANK YOU
 
Upvote 0
Finally,

We solved it. ?

Ca_PUNIT I have a little issue that I would appreciate your insight on if you're willing!

If you own 3 addresses you would have 3 project numbers. 1 for each address.

Ca_Punit 307
Ca_Punit 308
Ca_Punit 309

What's happening now is if I type in 30701, it's good. But if I type in 30801 or 30901 it turns red.

It's only grabbing the first one in the list... and saying the others are not true.

Current code is

=VLOOKUP($B2,JOBS!A:B,2,0)+0<>TRUNC($E2/100)
 
Last edited:
Upvote 0
Yes Vlookup only returns the FIrst value. Can you tell me how many unique combination can CA_Punit return. I mean

Ca_Punit 307
Ca_Punit 308
Ca_Punit 309

This returns 3 unique combination. So What is the maximum unique combination can a address return????
 
Upvote 0
This formula may slow down as i have selected full range A:A and B:B
Just select the data range in the lookup sheet

=ISERROR(SUM(MATCH(LEFT(B1,3)+0,TRUNC(1/(1/(IF(A1=Sheet3!A:A,Sheet3!B:B)/100))),0)))
 
Upvote 0
=ISERROR(SUM(MATCH(LEFT(E1,3)+0,TRUNC(1/(1/(IF(B1=Sheet3!$A$1:A200,Sheet3!$B1:$B200)/100))),0)))

I tried using this formula. And everything comes back red.

E1 is my project number, and B1 is my Customer
 
Upvote 0
So it should be this? This makes every number red for me.

=ISERROR(SUM(MATCH(LEFT(E1,3)+0,TRUNC(1/(1/(IF(B1=Sheet3!$A1:$A200,Sheet3!$B1:$B200)/100))),0)))
 
Upvote 0
Book1
ABCDEFGH
1ebay10010ebay100101
2ebay10100
3ebay10200
4ayush10300
5ayush10400
6
7
Sheet1
Cell Formulas
RangeFormula
G1G1=IFERROR(MATCH(LEFT(F1,3)+0,TRUNC(1/(1/(IF(E1=$A$1:$A$5,$B$1:$B$5)))/100),0),FALSE)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F1Expression=IFERROR(MATCH(LEFT(F1,3)+0,TRUNC(1/(1/(IF(E1=$A$1:$A$5,$B$1:$B$5)))/100),0),FALSE)textNO
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

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