Identify group of cells with same reference and 1 cell in group = specific text

Abbyneedshelp

New Member
Joined
Apr 30, 2015
Messages
6
Hello,

I'm not fab at excel, but know there is a formula for pretty much anything! So I'm hoping someone can help me.

I have a spread sheet with a list of references in rows, 1 reference can be duplicated over a number of rows with a verity of status':

Column A (Reference)_____________Column B (Status)
REF1___________________________Quote Given
REF1___________________________No Quote
REF1___________________________Live
REF2___________________________No Quote
REF2___________________________Referral Required
REF3___________________________Referral Required
REF3___________________________No Quote
REF4___________________________Referral Required
REF4___________________________No Quote
REF4___________________________Quote Given
REF5___________________________Quote Given
REF5___________________________No Quote
REF5___________________________Referral Required
REF5___________________________Live
REF6___________________________Referral Required
REF6___________________________No Quote
REF7___________________________Quote Given
REF7___________________________No Quote


What I would like to do is filter out all references where one of their status' in column B equals Live.

So maybe a formula in Column C which will say if in the group 1 stats 'Live' E.g.:

Column A (Reference)_____________Column B (Status)______________Column C
REF1___________________________Quote Given___________________Live
REF1___________________________No Quote _____________________Live
REF1___________________________Live__________________________Live
REF2___________________________No Quote
REF2___________________________Referral Required
REF3___________________________Referral Required
REF3___________________________No Quote
REF4___________________________Referral Required
REF4___________________________No Quote
REF4___________________________Quote Given
REF5___________________________Quote Given ____________________Live
REF5___________________________No Quote_______________________Live
REF5___________________________Referral Required_________________Live
REF5___________________________Live ___________________________Live
REF6___________________________Referral Required
REF6___________________________No Quote
REF7___________________________Quote Given
REF7___________________________No Quote

Then I can filter Column C to Live and delete all rows.

There may be better ways and I am open to suggestions, but as simple as possible is best for me.

Many Thanks


Abby
 

Excel Facts

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

I'm not fab at excel, but know there is a formula for pretty much anything! So I'm hoping someone can help me.

I have a spread sheet with a list of references in rows, 1 reference can be duplicated over a number of rows with a verity of status':

Column A (Reference)_____________Column B (Status)
REF1___________________________Quote Given
REF1___________________________No Quote
REF1___________________________Live
REF2___________________________No Quote
REF2___________________________Referral Required
REF3___________________________Referral Required
REF3___________________________No Quote
REF4___________________________Referral Required
REF4___________________________No Quote
REF4___________________________Quote Given
REF5___________________________Quote Given
REF5___________________________No Quote
REF5___________________________Referral Required
REF5___________________________Live
REF6___________________________Referral Required
REF6___________________________No Quote
REF7___________________________Quote Given
REF7___________________________No Quote


What I would like to do is filter out all references where one of their status' in column B equals Live.

So maybe a formula in Column C which will say if in the group 1 stats 'Live' E.g.:

Column A (Reference)_____________Column B (Status)______________Column C
REF1___________________________Quote Given___________________Live
REF1___________________________No Quote _____________________Live
REF1___________________________Live__________________________Live
REF2___________________________No Quote
REF2___________________________Referral Required
REF3___________________________Referral Required
REF3___________________________No Quote
REF4___________________________Referral Required
REF4___________________________No Quote
REF4___________________________Quote Given
REF5___________________________Quote Given ____________________Live
REF5___________________________No Quote_______________________Live
REF5___________________________Referral Required_________________Live
REF5___________________________Live ___________________________Live
REF6___________________________Referral Required
REF6___________________________No Quote
REF7___________________________Quote Given
REF7___________________________No Quote

Then I can filter Column C to Live and delete all rows.

There may be better ways and I am open to suggestions, but as simple as possible is best for me.

Many Thanks


Abby
Hi Abby, welcome to the boards.

Try out the following formula in C1 and drag-fill down. This is based on your example data and assumes the data ends in row 18. You can amend the 18 to however far down the sheet your data goes.

=IF(COUNTIFS($A$1:$A$18,A1,$B$1:$B$18,"Live")>0,"Live","")
 
Upvote 0

Forum statistics

Threads
1,215,929
Messages
6,127,743
Members
449,402
Latest member
jvivo3

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