Populating cell depending on the value of a range

ukbulldog001

New Member
Joined
Jul 8, 2015
Messages
23
Office Version
  1. 2021
Platform
  1. Windows
Hi,

I'm looking for a solution or a formula which could solve my problem.
PR_zpsrne4xoty.jpg
[/URL][/IMG]
I want the "STATUS" column to be populated as per the value available in "COUNT" column which is always a numerical.
All the "STATUS" should state "PR" if any of the cells in range "COUNT" corresponding to the Sl.No. group is more then zero.
Table A should be turned into Table B.
Hope above image is easy to understand.

Any formula or a method would be helpful.
At present I'm using =IF(D3>0,"PR","") in A3 and then populate manually.

Thanks.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
try this

=IF(OR(D3>0,AND(D3=0,B3=0)),"PR","")
 
Upvote 0
Assuming that the PR marks are based on the main entry (ABCD) and apply to all sub entries (ABCD-01) then I would add an additional helper column in E with the formula: =IFERROR(LEFT(C3,FIND("-",C3)-1),C3). Then in A enter the formula: =IF(OR(B3>=D3,AND(A2="PR",E2=E3)),"PR","")
 
Upvote 0
Can you clarify why A2 (B2=ABCD-01) is marked as PR while A8 (B8=UKL-01) is not?


The NUMBER column is a group like all the ABCD, ABCD-01 and ABCD-02 comes under ABCD, and so for IJKL AND IJKL-01 comes under IJKL. i.e., for Sl.No. 1 and 3 respectively.
A2, A3 and A4 (ie, ABCD, ABCD-01 and ABCD-02) should be "PR" if any respective cells contain values more than 0 (ie, D2, D3 and D4 containing value more than zero).
 
Upvote 0
Oh, so if *ANY* of the cells D2, D3, D4, then all members of ABCD should be marked as PR.

Then I would add an F column with the formula =sumif(E:E,E2,D:D) and change A to =IF(F2>0,"PR","")
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,447
Members
448,898
Latest member
drewmorgan128

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