Calculate correct value based on multiple column criteria

JKER

New Member
Joined
Aug 9, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello,

Below is a condensed table of an orderbook I am currently working on. Each row represents an order. An order consists of an assigned customer, the ordered item, and whether the customer requires special service (indicated by 50/100). The total orderbook contains multiple identical items, but being ordered by multiple customers.

Customer (column A)Item (column B)Required service (column C)Output (column D)
StarA22EM100
StarA22EM50
G20 automationA22IP100
G20 automationA22IP50
G10 automation corp.A22IP100
YSAUA66AA50
YSAUA77RT100
Fest KGA77RT100
TR RoboticsA77RT50
Pakvol GmbHA80GM50
Pakvol GmbHA80GM100
Pakvol GmbHA80GM50
TR RoboticsA80GM100
Sau Corp.A80GM50
Sau Corp.A80GM50
Sau Corp.A80GM100
Pakvol GmbHA80GM100
RC RoboticsA48ZX100
Int. Corp.A33WB50

For each item (row), I want to know whether there are more than one distinct customers requiring a '100' service. More specifically: column D should contain a value:
1; if there are more than one customers requiring a '100' service customer
0; if there is only one (or none) customer requiring a '100' service.

So, the following should be created (column D has been manually calculated):

Customer (column A)Item (column B)Required service (column C)Output (column D)
StarA22EM1000
StarA22EM500
G20 automationA22IP1001
G20 automationA22IP501
G10 automation corp.A22IP1001
YSAUA66AA500
YSAUA77RT1001
Fest KGA77RT1001
TR RoboticsA77RT501
Pakvol GmbHA80GM1001
Pakvol GmbHA80GM501
Pakvol GmbHA80GM501
TR RoboticsA80GM1001
Sau Corp.A80GM501
Sau Corp.A80GM501
Sau Corp.A80GM1001
Pakvol GmbHA80GM501
RC RoboticsA48ZX1000
Int. Corp.A33WB500


I have tried to calculate column D with Vlookup, and index/match to check for each row whether there are items having >1 customers requiring a '100' service. Also, I tried to sum(countif(...) based on criteria. Unfortunately, I could not manage to create a correct formula. Could you help me out? Thank you.
 
You're welcome & thanks for the feedback.
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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