countifs value to be in decimal

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
293
Office Version
  1. 365
Platform
  1. Windows
I have this table below, i want every recurrence of acct. and no. will count and accumulate by decimal..
In my table below, comlumn B (no. column) can be change 2 to 5 while the recurence for both acct and no. can accumulate to 5 or more. I already have this formula in column C (expected result) =IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)=2,B2&".2",IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)=3,B2&".3",IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)=4,B2&".4",IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)=5,B2&".5",B2)))). Its working up to 5 occurence and i need to add more.. Is there any other way to simplify the formula using Excel version 2019?.. many thanks


acctno.Expected result
102​
1​
1​
103​
1​
1​
102​
1​
1.2​
104​
1​
1​
102​
1​
1.3​
103​
1​
1.2​
103​
1​
1.3​
103​
1​
1.4​
103​
1​
1.5​
104​
1​
1.2​
104​
1​
1.3​
104​
1​
1.4​
105​
1​
1​
102​
1​
1.4​
102​
1​
1.5​
105​
1​
1.2​
105​
1​
1.3​
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
count and accumulate by decimal
Out of curiosity, is your no. column formatted to display decimals?
I know it's basic, but I just needed to ask since that's the first thing I would look at...

1675151128995.png


Another thing to consider is to use the TEXT Function:
=TEXT(G3,"0.0")
This will display a 1 in a cell as 1.0 for example.
Although I've never used it with COUNTIFS.
 
Upvote 0
Out of curiosity, is your no. column formatted to display decimals?
I know it's basic, but I just needed to ask since that's the first thing I would look at...

View attachment 84214

Another thing to consider is to use the TEXT Function:
=TEXT(G3,"0.0")
This will display a 1 in a cell as 1.0 for example.
Although I've never used it with COUNTIFS.
thank you.. the idea of my formula is whenever the count become 2 or more the result based on if function would be 2=1.2, 3=1.3, and so on...nothing to do with the format cells
 
Upvote 0
Upvote 0
Solution
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,331
Members
449,155
Latest member
ravioli44

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