Populating an Indicator (X) When Two Criteria Are Met

laclair003

New Member
Joined
Nov 29, 2017
Messages
2
[TABLE="width: 536"]
<tbody>[TR]
[TD]Please see below table. I'm trying to assign an "X" in column NIS2 when any record sharing the same TRANS ID (column A) has an "X" in column NOT IN STOCK. My obstacle is some times the NOT IN STOCK column "X" may be the first, middle or last record for a given TRANS ID. My attempts using IF AND & OR combination formulas have had very limited success. Any insight is appreciated!

TRANS ID SEQUENCE PART PART2 NOT IN STOCK NIS2
52268329 1 23237402 Floor Liners
52268329 2 84073612 Floor Liners X
52270748 1 22958431 Splash Guards
52270748 2 23278169 Splash Guards
52270755 1 22958431 Splash Guards
52270755 2 23278169 Splash Guards
52271238 1 22894857 Splash Guards X
52271238 2 23387353 Splash Guards
52271268 3 19567412 Sill Plate5
52274322 1 23435023 Exhaust Systems
52276033 1 23381376 Floor Liners
52276033 2 84370635 Floor Liners X


[/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col></colgroup>[/TABLE]
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi, welcome to the board.

Should the results look like this . . .

TRANS ID SEQUENCE PART PART2 NOT IN STOCK NIS2
52268329 1 23237402 Floor Liners X
52268329 2 84073612 Floor Liners X X
52270748 1 22958431 Splash Guards
52270748 2 23278169 Splash Guards
52270755 1 22958431 Splash Guards
52270755 2 23278169 Splash Guards
52271238 1 22894857 Splash Guards X X
52271238 2 23387353 Splash Guards X
52271268 3 19567412 Sill Plate5
52274322 1 23435023 Exhaust Systems
52276033 1 23381376 Floor Liners X
52276033 2 84370635 Floor Liners X X

If YES, then assuming TRANSID is in column A and so on, try this in column F . . .

=COUNTIFS(A$2:A$13,A2,E$2:E$13,"X")

Remember, older versions of Excel don't have the COUNTIFS function.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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