Concatenation issue

Belair58

Board Regular
Joined
Mar 31, 2005
Messages
95
Hello,

I have a macro that's generating subtotals, cell O16's formula is =SUBTOTAL(3,O4:O15)

I've isolated the range down by using LEFT and RIGHT in Cell U16 O4:O15

I now need to have cell V16's formula to be =ROUND(COUNTIF(U16,"LATE")/COUNTA(U16)*100,2)

I've tried using &

=ROUND(COUNTIF(&U16&,"LATE")/COUNTA(&U16&)*100,2) but I receive the "There's a problem with your formula" error.

="ROUND(COUNTIF("&U16&",""LATE"")/COUNTA("&U16&")*100,2)" This adds the range but doesn't work as a function.

Any help would be appreciated.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
It's not entirely clear to me but, are you perhaps wanting to use INDIRECT ?

As in. =ROUND(COUNTIF(INDIRECT(U16),"LATE")/COUNTA(INDIRECT(U16))*100,2)
 
Upvote 0
Snakehips,

That worked great. I'd never used Indirect before, very interesting. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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