formula help

datadummy

Active Member
Joined
Mar 16, 2017
Messages
312
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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,215,473
Messages
6,125,018
Members
449,203
Latest member
tungnmqn90

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