formula help

datadummy

Active Member
Joined
Mar 16, 2017
Messages
313
Office Version
  1. 365
Platform
  1. Windows
I am looking for a formula to give me a percent of the following,
(Tab4 column A "Gen Med" - Tab3 column A "Gen Med") / (Tab4 column A "Gen Med")
I keep getting a % that's like 19000% so clearly I'm doing something wrong. I have tried countif(s) and they haven't worked or I am just entering them wrong. I hope this is possible.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi there,

Try this:

=(COUNTIF('Tab4'!A:A,"Gen Med")-COUNTIF('Tab3'!A:A,"Gen Med"))/COUNTIF('Tab4'!A:A,"Gen Med")

Just format whatever cell you have the formula in as a percentage.

HTH

Robert
 
Upvote 0
Hi Robert,
I tried that and got an error message, so I removed the second parenthesis after the second countif statement and then it worked but the result was 19398%.
 
Upvote 0
I tried that and got an error message

That's odd - it worked for me :confused:

the result was 19398%

Without having your data I can't comment. Perhaps doing the sum manually will show you what's happening.

Robert
 
Upvote 0
I double checked what I entered and it appears I didn't add the parenthesis before the equal sign, I reentered it and now it appears to be working, thanks for the help!!
 
Upvote 0
Sounds like the mathematical precedent order got mixed up. I'm glad we got it sorted in the end ;)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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