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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi,

Isn't M&M price within $10 of AES ($6.99 vs $13)?
 
Upvote 0
Main thing for the formula is to analyze customer ex (A, B, C) together in 1 IF statement and have the threshold of $20 for each of them. And if they meet within the threshold of $20 then YES and if not then NO
 
Upvote 0
So basically if Customer A is within $20 of Customer B&C and Customer B is with $20 of Customer A&C and lastly Customer C is with $20 of Customer A&B
 
Upvote 0
So in this case AES unit price is $13 which is not with customer Fresno & M&M if we have threshold of $20 applied
 
Upvote 0
Maybe

=IF(A2="","",IF(ABS(E2-MIN(IF($E$2:$E$40<>"",IF($A$2:$A$40<>A2,$E$2:$E$40))))<20,"Yes","No"))

Enter as an array, Ctrl, Shift & Enter
 
Upvote 0

Forum statistics

Threads
1,214,845
Messages
6,121,902
Members
449,053
Latest member
Guy Boot

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