Text and formula

jmazorra

Well-known Member
Joined
Mar 19, 2011
Messages
715
In cell F8 I have the following formula: =COUNTIF(K6:K127,"=y") which results in 15

In cell G8 I have the formula: =F8/E7 which gives me a result of 12%

And then in cell E8 I have forumula: =F8& " or " &TEXT(G8,"0%") & " of staff" which gives me the result 15 or 12% of staff

As you see I am using three cells to arrive at one result in E8. Question is: Is there a way to combine all 3 formulas in E8 so that I do not need to hide 2 columns, or is the way I am doing it the correct way.

Thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Try something like this...

=COUNTIF(K6:K127,"=y") & " or " &TEXT(COUNTIF(K6:K127,"=y")/E7,"0%") & " of staff"
 
Upvote 0
On last thing:

Will the same work for:

=SUM(IF('All Employees Annualized'!M6:M127="maLE",IF('All Employees Annualized'!J6:J127>=40,1,0)))
 
Upvote 0
If you have Excel 2007 or later...
=COUNTIFS('All Employees Annualized'!M6:M127,"maLE",'All Employees Annualized'!J6:J127.">=40")

If you have Excel 2003 or earlier...
=SUMPRODUCT(('All Employees Annualized'!M6:M127="maLE")*('All Employees Annualized'!J6:J127>=40))
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

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