Hi guys having a bit of a problem with the below formula,
What it is intended to do is search a customers email address to see if the customer name is contained in the domain of said email address, the name is split into three parts as seen in the formula below.
My problem is when one of the customer name cells is blank the formula evaluates as true (E-mail address okay), I've tried using ISBLANK but I can't get it to function properly that code is also displayed below.
=IF(G4="","No E-mail Address",IF(L4&K4&J4="","No Customer name on file",IF(ISNUMBER(SEARCH("#"&J4,G4)),"E-mail Address OK",IF(ISNUMBER(SEARCH("#"&K4,G4)),"E-mail Address OK",IF(ISNUMBER(SEARCH("#"&L4,$G4)),"Email Address okay",("E-mail Address NOT OK"))))))
=IF(G4="","No E-mail Address",IF(L4&K4&J4="","No Customer name on file",IF(ISBLANK*ISNUMBER(SEARCH("#"&J4,G4))),"E-mail Address OK",IF(ISBLANK(ISNUMBER(SEARCH("#"&K4,G4))),"E-mail Address OK",IF(ISBLANK(ISNUMBER(SEARCH("#"&L4,$G4))),"Email address okay",("E-mail Address NOT OK"))))))
Your formula evaluates to true because ISBLANK is set as a positive condition. You'll need to change it to NOT(ISBLANK...).
Try this version - it checks all three name cells in one go and the added (J4:L4<>"") [range not blank] part stops you getting "false positives"
=IF(G4="","No E-mail Address",IF(L4&K4&J4="","No Customer name on file",IF(ISNA(LOOKUP(2^15,SEARCH("#"&J4:L4,G4)/(J4:L4<>""))),"(Email address NOT OK)","Email address okay")))
Related
I have 3 columns in Excel that I'm trying to compare against.
E.g.
I want to make sure that the email address should be more similar to Enquirer Name than it is to Client Name.
My current formula looks at if Enquirer Name differs to Client Name, then show me email addresses that match more than 5 characters with Client Name, which doesn't quite eliminate enquirers related to clients where their email address satisfies the equation.
Is Excel capable of returning something like Enquirer-Email match 9 characters, Client-Email match 5 characters, therefore no need to alert. Whereas if it's the other way around, conditional formatting to highlight the line?
Many thanks in advance!
I have a formula that tells if the email domain and website are same or not and if it contains certain syllables.
=(IFERROR(IF((RIGHT(N2,LEN(N2)-FIND("#",N2)))=(SUBSTITUTE(K2,"www.","")),"","NOT MATCHED!"),(if((SUMPRODUCT(--ISNUMBER(SEARCH(Checklist!H:H,N2)))>0)=TRUE,"NOT MATCHED",""))))
I am trying to make this a bit more dynamic: website- google.com email domain- #googlemail.com, the formula will consider this as a match, as google is present in both of them.
I tried to give it a with this formula
=IF({LEFT(REPLACE(N2,1,FIND("#",N2),""),FIND(".",REPLACE(N2,1,FIND("#",N2),""))-1)})=(SUBSTITUTE(K2,"www.",""),"","NOT MATCHED!"),if((SUMPRODUCT(--ISNUMBER(SEARCH(Checklist!H:H,N2)))>0)=TRUE,"NOT MATCHED","")
But doesn't work, and I can't seem to figure out what is the issue.
This is an address list that has a field for po box (number only)[A1], street number[A2], street name[A3].
Objectives
use PO Box over street address where there are both OR no street given
then concatenate "P.O. Box "& A1; to get "P.O. Box 1234" as the second line under the name
OR, if po is blank, concatentate street number and name: A2&" "&A3; to get "1234 Smith Street"
THEN join the results to produce a mailing label with the city,state,and zip cells.
Everything I come up with give Excel (and me) a bellyache. It hates empty cells, circular refs, etc.
1124 Kenilworth Ave.
i did Col I by hand. {=If(F2>"","P.O. Box "&F2,G2&" "&H2)} is a no go:excel does not like the empty G and H cells. I don't seem to grasp the various of blank, isblank,isnotempty, etc. for they all fail. This seems pretty basic conditional choice. test for presence in one col and act accordingly: if the first test is met, why balk at the second.
Any help appreciated.
The initial question is which kind of address to create, street or postbox.
=IF(OR(COUNTA($F3)=1,COUNTA($F3:$H3)=0),"P.O.Box "&IF(COUNTA($F3),$F3,$A$1), "Street address")
The above formula determines that (a) if a Box number is given OR (b) no addressing information is available at all a Box address must be returned. In the latter case, if there is no box number the default from A1 is to be used. This is the full and final solution for box addresses. Any corrections to that thought must be made here.
The alternative to a Box address is a street address. In the above formula that solution is represented by the place holder "street address". Below is the formula that should take the place holder's place. It's very simple, initially.
=IF(COUNTA($G3:$H3)=2,"OK","Not OK")
Observe that the cell count can only be 1 or 2. Therefore there are only two possible solutions marked by the two place holders in this formula. The formulas for these are given below. Observe that a missing street name is replaced with A3 and a missing street number with A2. The formula allows for both but, in fact, this can't occur because a Box address would be returned.
[OK] =$G3&" "&$H3
[Not OK] =IF(COUNTA($G3),$G3,$A$2)&" "&IF(COUNTA($H3),$H3,$A$3)
With the place holders replaced we get this formula.
[street address] =IF(COUNTA($G3:$H3)=2,$G3&" "&$H3,IF(COUNTA($G3),$G3,$A$2)&" "&IF(COUNTA($H3),$H3,$A$3))
And when this formula replaces the place holder "street address" in the initial, basic formula here is the final result.
=IF(OR(COUNTA($F3)=1,COUNTA($F3:$H3)=0),"P.O.Box "&IF(COUNTA($F3),$F3,$A$1), IF(COUNTA($G3:$H3)=2,$G3&" "&$H3,IF(COUNTA($G3),$G3,$A$2)&" "&IF(COUNTA($H3),$H3,$A$3)))
I'm trying to work out whether an ID and ip address is for a specific company.
In the list of IP addresses there are 2 that I need to look for (192.4.5.6 & 192.4.5.9) out of 10 different ip addresses.
If it's a certain ID number (GH113) I want it to print out "yes" for the 2 ip addresses listed above and if it has that same ID but a different ip address I want it to print out "no". If none match the ID or IP address I want it to print out "N/A".
I've got the following formula which is only printing "yes" and "no" but not "N/A" but it's also printing out "FALSE" and I'm not sure why:
=IF(B2="GH113",IF(F2="192.4.5.6","No",IF(B2="GH113",IF(F2="192.4.5.9","No","Yes"),"N/A")))
B2 is the ID column and GH113 is the company ID I am looking for.
F2 refers to the IP addresses column and the ip addresses listed above are the ones I am searching for.
Any help on where I am going wrong would be greatly appreciated.
Thanks
=IF(B2="GH113", IF(OR(F2="192.4.5.6", F2="192.4.5.9"), "yes", "no"), "N/A")
I have two lists of street addresses that have a combination of street numbers and names in one cell. One list is a key, if you will, of how the addresses are labeled in our company, and the other list is all of the addresses that customers used to get a package to us. For example![Address Key][1]
is the correct address format. The other list has errors within the address because there may be errors with order, fat fingered street numbers, or spelling errors of the street names. I'd like to create a formula or find a way that looks for any portion of the second list, and have it return a "yes" or "no" if it is an address in the address key. The second list that I need to lookup with is below.![enter image description here][2]
You can see that the addresses that the customers enter do not match how we label our addresses. Hopefully there is a way for me to look up any part of the address that they entered against our key, and have it return a value that is associated with each address in the key. For example, the first address is location 100. Even though the customer list doesn't have that address entered correctly, i'm hopping it can find a part of the address they entered in our list.
Thanks,
Jay
You can try using a Vlookup with a 'TRUE' parameter in the RangeLookup argument. That way the Vlookup will return an approximate match against your company list. You may need to reformat the data a bit (e.g. concatenate house number and street name together) and do some iterations to get the final result that you need. You haven't added any screen shots so I can't see the exact format of your data.