put yes depending on a open balance

mark692

Active Member
Joined
Feb 27, 2015
Messages
321
Office Version
  1. 2016
Platform
  1. Windows
hi guys i have 2 problems on my table

1. on column C i want to put a formula that will indicate yes if a the group code code has an open balance like this

ABC
Open BalanceGroup CodeWith Balance
YES
YES
YES
YES
No
No
No
YES
YES

<tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"] 50.00[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"] 50.00[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"] -[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"] -[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"] -[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"] -[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"] -[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]9[/TD]
[TD="align: right"] 10.00[/TD]
[TD="align: right"]3[/TD]

[TD="align: center"]10[/TD]
[TD="align: right"] 10.00[/TD]
[TD="align: right"]3[/TD]

</tbody>
Sheet1

2. On column C 1 want to put a word "Dont delete" if Column B with the same group code has a word "Don't" like this:

ABC
Group CodeTypeRemarks
Don’tDon’t delete
deleteDon’t delete
deleteDon’t delete
Don’tDon’t delete
DeleteDelete
DeleteDelete
DeleteDelete

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]2[/TD]

</tbody>
Sheet2




thanks!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Sorry didn't read properly! gimmie 5 mins

1. =IF(SUMIF($C$2:$C$10,C2,$B$2:$B$10)>0,"yes","no")
 
Last edited:
Upvote 0
Hi,

Will these work for you:


Book1
ABC
1Open BalanceGroup CodeWith Balance
2501YES
3501YES
4-1YES
5-1YES
6-2NO
7-2NO
8-2NO
9103YES
10103YES
Sheet2
Cell Formulas
RangeFormula
C2=IF(COUNTIFS(B$2:B$10,B2,A$2:A$10,">0")>0,"YES","NO")



Book1
ABC
1Group CodeTypeRemarks
21Don'tDon't Delete
31deleteDon't Delete
41deleteDon't Delete
51Don'tDon't Delete
62DeleteDelete
72DeleteDelete
82DeleteDelete
Sheet3
Cell Formulas
RangeFormula
C2=IF(COUNTIFS(A$2:A$8,A2,B$2:B$8,"Don't")>0,"Don't Delete","Delete")
 
Upvote 0
Sorry didn't read properly! gimmie 5 mins

1. =IF(SUMIF($C$2:$C$10,C2,$B$2:$B$10)>0,"yes","no")

Just the range, when i copied your sheets, the row numbers were in column A, =IF(SUMIF($B$2:$B$10,B2,$A$2:$A$10)>0,"yes","no") would work fine.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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