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
1Open BalanceGroup CodeWith Balance
2 50.001YES
3 50.001YES
4 -1YES
5 -1YES
6 -2No
7 -2No
8 -2No
9 10.003YES
10 10.003YES

<tbody>
</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
1Group CodeTypeRemarks
21Don’tDon’t delete
31deleteDon’t delete
41deleteDon’t delete
51Don’tDon’t delete
62DeleteDelete
72DeleteDelete
82DeleteDelete

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2




thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,215,999
Messages
6,128,192
Members
449,431
Latest member
Taekwon

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