Hi Guys Struggling on this one. I need to use WorksheetFunction.Countif in VBA to access info in another workbook but I cant get it to work.
My Code is:
t = Application.WorksheetFunction.CountIf('C:\My Directory\[Stock.xlsm]Main Stock'!$B$B, "<>")
Thanks in Advance
;-)
Hi there
I have an excel sheet that I need to count value <5 and >0
Sheets("READ_ME").Cells(40, 2) = WorksheetFunction.CountIf(Sheets("JOIN_DATA").Range("i:i"), "<5"
and to sum if <5 and >0
Sheets("READ_ME").Cells(41, 2) = WorksheetFunction.SumIfs(Sheets("JOIN_DATA").Range("g:g")...
Hi Everyone,
So Im stumped, and I have found no soulutions online as of yet.
Im using Excel 2010.
I recive a report that never has the headers in the same spot twice, so I cant reference them by cell.
I figured out how to reference the first unused column in the worksheet, then flood fill...
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.