IF Statement with multiple line item

shahid5788

Board Regular
Joined
May 24, 2016
Messages
91
Hi,

Can you please assist with an IF statement that would have multiple conditions for analysis.

I currently have 3 customers with an associated Part Number. I am trying to find a IF statement that would say if customer ex.A,B,C price is within $10 of each other then "Yes" if not "No". I have listed what I wanted below.



Customer NamePart NumberPrice Me UnitIf Statement what I WANT
AES Electrical, Inc. (Platinum Pkg)5C90813Yes
FRESNO, City of5C90820Yes
M&M Management5C9086.99No

<colgroup><col span="2"><col span="2"><col span="2"><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Think this one works! Test on your data

=IF(E2="","",IF(SUMPRODUCT((ABS($E$2:$E$9-E2)<20)*($C$2:$C$9=C2)*($A$2:$A$9<>A2)*1),"Yes","No"))
 
Upvote 0
Are you looking to do this by Part# - to mark which prices are within $10 of max for that part?
This is a thought for doing the above, formula in D2 copied down:
=IF(0 < COUNTIF(B:B,B2),IF(10 + C2 < MAXIFS(C:C,B:B,B2),"No","Yes"),"Not Found")<countif(b:b,b2),if(10 +c2="" <maxifs(c:c,b:b,b2),"no","yes"),"not="" found")<countif(b:b,b2),if(10="" +="" c2="" <="" maxifs(c:c,b:b,b2),"no","yes"),"not="" found")[="" code]
Customer NamePart NumberPrice Me UnitIf Statement what I WANT
AES Electrical, Inc. (Platinum Pkg)5C90813Yes
FRESNO, City of5C90820Yes
M&M Management5C9086.99No
AES Electrical, Inc. (Platinum Pkg)7A12312No
FRESNO, City of7A12323Yes
M&M Management7A1235No
AES Electrical, Inc. (Platinum Pkg)2B02B10Yes
FRESNO, City of2B02B9Yes
M&M Management2B02B8Yes

<tbody>
</tbody>
<countif(b:b,b2),if(10 +="" c2="" <="" maxifs(c:c,b:b,b2),"no","yes"),"not="" found")
<countif(b:b,b2),if(10 +="" c2="" <="" maxifs(c:c,b:b,b2),"no","yes"),"not="" found")[="" code]

<countif(b:b,b2),if(10 +="" c2="" <="" maxifs(c:c,b:b,b2),"no","yes"),"not="" found")<countif(b:b,b2),if(10="" found")[="" code]<countif(b:b,b2),if(10="" code]<="" html=""></countif(b:b,b2),if(10></countif(b:b,b2),if(10></countif(b:b,b2),if(10></countif(b:b,b2),if(10>
 
Upvote 0

Forum statistics

Threads
1,215,309
Messages
6,124,180
Members
449,146
Latest member
el_gazar

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