what formula or calculations are done here !I don't know

montecarlo2012

Well-known Member
Joined
Jan 26, 2011
Messages
984
Office Version
  1. 2010
Platform
  1. Windows
I have a spreadsheet where supposedly the percentages are calculated
somebody in 30 days show up 5 time then on column B they say the percentage is 3.3
and so on but still I don't know the operation here to get this result
also I don't know if I am in the right place here to ask this let me show you a screen shut
so just for kindness you resolve to help me please.
1681491004967.png

so if in 12 day shows up 4 times then the % is 6.7 for me to write a vba routine I have to know what math they make here
anybody please
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Without knowing the significance of things, the calculation in column B is as follows
=(20/numberofdays) x days
so in B2 it will be =(20/30) x 5 which is 3.333333
B3 it will be =(20/30) x 4

B9 it will be =(20/20) x 6

B17 it will be =(20/12) x 4 which is 6.666666666

the cells in B are formatted with 1 decimal place so 6.6666666 is 6.7
 
Upvote 0
jimrward, work for the first part but not for the other,
thank you for stop and work out for my problem.
thank you.
 
Upvote 0
works for me, I will do an excel version later and post
 
Upvote 0
Hello jimr is fine I figure out the weird way this people do this, and I discover it is not a percentage what really happen,
so ones I got the math now I have the code
here we go
VBA Code:
Sub Caprice()
    Dim starpoint As Double
    Dim endpoint As Double
    
    For i = 2 To 15
        starpoint = ((Range("A" & i).Value * 10) / Range("$A$1").Value) * 2
        endpoint = ((Range("A" & i).Value * 10) / Range("$A$1").Value) * 2
        Range("B" & i).Value = starpoint
      
    Next i
End Sub
and thank you again for your company
 
Upvote 0
Ok cool we have same answer different method, I am not a mathematician but spotted a pattern
 
Upvote 0

Forum statistics

Threads
1,215,222
Messages
6,123,716
Members
449,116
Latest member
Aaagu

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