Populating an Indicator (X) When Two Criteria Are Met

laclair003

New Member
Joined
Nov 29, 2017
Messages
2
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



<tbody>
</tbody><colgroup><col><col><col><col><col><col></colgroup>
 

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.
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,214,574
Messages
6,120,329
Members
448,956
Latest member
Adamsxl

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