Formula Help: If then (Match)

rentonhighlands

Board Regular
Joined
Jul 31, 2014
Messages
110
Members:
Please help me write a formula

Sample Data
A B
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]1.1.1.1[/TD]
[TD="width: 64"]1_V[/TD]
[/TR]
[TR]
[TD]1.1.1.1[/TD]
[TD]2_V[/TD]
[/TR]
[TR]
[TD]1.1.1.2[/TD]
[TD]1_V[/TD]
[/TR]
[TR]
[TD]1.1.1.3[/TD]
[TD]1_V[/TD]
[/TR]
</tbody>[/TABLE]

If column A finds a match on IP address and column B has both 1_V & 2_V then say YES in column C otherwise NO
I want to find in column A if there is the same IP address and it has both 1_V and 2_V I want Yes
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
How about


Excel 2013/2016
EFG
21.1.1.11_VYES
31.1.1.12_VYES
41.1.1.21_VNO
51.1.1.31_VNO
Sheet1
Cell Formulas
RangeFormula
G2=IF(SUMPRODUCT(($E$2:$E$6=E2)*(($F$2:$F$6="1_V")+($F$2:$F$6="2_V")))=2,"YES","NO")
 
Upvote 0
Thank you how ever I can not get this to work in my data
I think it has something to do with (($E$2:$E$6=E2) "=E2" part

I want the formula to look down column E and each time it finds a match (the same IP address) then column F will have 1_V and 2_V then yes if not no
 
Upvote 0
Discovered a problem with the previous formula.
try


Excel 2013/2016
EFG
21.1.1.11_VYES
31.1.1.12_VYES
41.1.1.21_VYES
51.1.1.31_VNO
61.1.1.22_VYES
71.1.1.31_VNO
Sheet1
Cell Formulas
RangeFormula
G2=IF(AND(COUNTIFS($E$2:$E$7,E2,$F$2:$F$7,"1_V"), COUNTIFS($E$2:$E$7,E2,$F$2:$F$7,"2_V")),"YES","NO")
 
Upvote 0
can I add ISBLANK so if column "E" is blank then keep column "G" blank
so if there is no data in column "E" then the result will be blank. The cell is blank
 
Upvote 0
Try
=IF(E2="","",IF(AND(COUNTIFS($E$2:$E$7,E2,$F$2:$F$7,"1_V"), COUNTIFS($E$2:$E$7,E2,$F$2:$F$7,"2_V")),"YES","NO"))
 
Upvote 0
Fluff:
how can I change the formula to only look at columns T and W. The report changed.. Now I need the formula to look at column T and when it finds the same IP address then yes.
 
Upvote 0
Change all the E to T & F to W
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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