VbaHell

Well-known Member
Joined
Jan 30, 2011
Messages
1,220
Hello All

How can I convert this formula to work in Excel 2003 please
I use VBA to add the formula

The code is
Code:
Range("D8").FormulaR1C1 = "=COUNTIFS(Data!C18,"">=0"",Data!C20,"""")"

The actual formula in the cell is

=COUNTIFS(Data!$R:$R,">=0",Data!$T:$T,"")

Any help would be appriciated


<colgroup><col width="64" style="width:48pt"></colgroup><tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I don't think the COUNTIFS function is available in Excel 2003, or any other IFS (plural) function. It looks like you could use the COUNTIF function since it doesn't look like you have a ton of criteria. If you do have multiple criteria, you could probably seed a few if statements (up to 7)
 
Upvote 0
The COUNTIFS function is not available in Excel 2003. It is a fairly recent addition. You have to use SUMPRODUCT instead.

The actual formula in the cell is

=COUNTIFS(Data!$R:$R,">=0",Data!$T:$T,"")
Try this:
Code:
=SUMPRODUCT(--(R:R>=0),--(R:R<>""),--(T:T=""))
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

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