Need formula - Urgent

jeetusaini85

Board Regular
Joined
Aug 9, 2013
Messages
131
Hello there,

Need your help to resolve my query. I need a formula for given below criteria:

I have two column, in 1st column i have some firm name and in 2nd there are status of the names like pending, received etc. Now the problem is, in 1st column firm names are in multiple rows with status. I need a formula in which :

If all the status of a firm is "Received" it should mark "Received" in front of a single name of the firm and if there is any other status with "Received" it should mark "Pending". Like:

Column A Column B Column C
Firm name Status New Status
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received Received
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -

ABC Pvt. Ltd. - Pending -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received Pending
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -
ABC Pvt. Ltd. - Received -


Thanks,
 
Hey Andrew,

Sorted out all the query myself with your guidance in formula, here is rectified formula as i need:

=IF(COUNTIF(B$2:B2,B2)=1,IF(COUNTIFS(B$2:B$23,B2,C$2:C$23,"Received")=COUNTIF(B$2:B$23,B2),"Received",IF(COUNTIFS(B$2:B$23,B2,C$2:C$23,"Pending"),"Pending","-")),"-")

Thanks a lot
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hey cmwcg,

Thanks for reply but there are lots of firm name which cannot write in formulas. Thanks for your contribution.

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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