=if(sumproduct( or if(countifs(

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,844
Office Version
  1. 365
Platform
  1. Windows
I have Cost centers in column G and interest in column Y, Cost centers are repeated and so interest rates accordingly, only one interest rate should be for one cost center, so if there are more than one rates there is an error, so for example

411044924
5.280613
411044924
5.280613
411044924
5.280613
411044924
5.280613
411044924
5.280613
411044924
5.280613
411044978
10.561225
411044978
10.561225
411044978
10.561225
411044978
10.561225
411044976
10.561225
411044976
10.561225
411044976
10.561225
411044976
10.561225
411044919
5.071967
411044919
5.071967

<tbody>
</tbody>

I need a formula that should indicate if the interest rate is more than one of any of these cost centers.
I am using
=IF(SUMPRODUCT($G$80:G80=G80)*($Y$80:Y80=Y80)>1,"ERROR","OKAY")


Best regards,

Sohail Rizki
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If I am correctly understanding your request, this should be the formula you are looking for:

=IF(COUNTIFS($G:$G,$G2,$Y:$Y,"<>"&$Y2)>0,"ERROR","OKAY")

typed in row 2 and dragged down for each row.
 
Last edited:
Upvote 0
Yes,
this is working, great,

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,279
Messages
6,124,030
Members
449,139
Latest member
sramesh1024

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