Can I set the denominator for a cell to be equal to another cell's value?

BlackLotus

New Member
Joined
Sep 13, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
For example, I'm making a spreadsheet containing wins and losses in League of Legends alongside LP gain and loss. I'd like to set a cell to display a fraction of wins to loss, with the denominator being the number of matches in the spreadsheet. I could update this manually through formatting, or track each in separate cells, but I would prefer having it automatically update, and display in the single cell for OCD's sake. Is there an add on or some way I'm overlooking? Or is it just not feasible?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
What cells are the number of matches stored in?
what formula are you currently using
A sample of your data might be helpful
 
Upvote 0
They're in columns, I'm using counta to calculate winrate, and the same thing can easily be used to count total number of matches. I can get it to return the number that should be the denominator, but I can't figure out a way to format it to be that number. As far as I'm aware, formatting can't reference cells.
lp gainloss.xlsx
ABCDEFG
2AverageVictoryDefeataveragewinrateNeutral winrate1.292517
312.6141716.2857158.82%56.38%
4Sum1217Sumtotal LP gain
5126121711412
61115
71416
81316
91216
1013
1112
1213
Sheet1
Cell Formulas
RangeFormula
G2G2=D3/A3
A3A3=AVERAGE(B3:B99)
D3D3=AVERAGE(C3:C99)
E3E3=COUNTA(B3:B99)/COUNTA(B3:C99)
F3F3=G2/(G2+1)
A5A5=SUM(B3:B99)
D5D5=SUM(C3:C99)
E5E5=A5-D5
 
Upvote 0
Can you just tell us what you want to divide what by what in terms of cells ??
what result do you expect to return ?
 
Upvote 0
Based on your two posts so far, I think you may benefit by reading the following which I have posted in the past. After reading it, go back and answer Michael's questions.
One thing you must keep in mind when you ask a question in a forum... the people you are asking to help you know absolutely nothing about your data, absolutely nothing about how it is laid out in the workbook, absolutely nothing about what you want done with it and absolutely nothing about how whatever it is you want done is to be presented back to you as a result... you must be very specific about describing each of these areas, in detail, and you should not assume that we will be able to "figure it out" on our own. Remember, you are asking us for help... so help us to be able to help you by providing the information we need to do so, even if that information seems "obvious" to you (remember, it is only obvious to you because of your familiarity with your data). To sum up... we only know what you tell us, nothing more.
 
Upvote 0
Welcome to the MrExcel board!

Is this what you mean?

21 09 14.xlsm
BCDE
1VictoryDefeatwinrate
29/15
31217
41217
51115
61416
71316
81216
913
1012
1113
12
Fraction
Cell Formulas
RangeFormula
E2E2=TEXT(COUNTA(B3:B99)/COUNTA(B3:C99),"?/"&COUNTA(B3:C99))
 
Upvote 0
Solution
Welcome to the MrExcel board!

Is this what you mean?

21 09 14.xlsm
BCDE
1VictoryDefeatwinrate
29/15
31217
41217
51115
61416
71316
81216
913
1012
1113
12
Fraction
Cell Formulas
RangeFormula
E2E2=TEXT(COUNTA(B3:B99)/COUNTA(B3:C99),"?/"&COUNTA(B3:C99))
Yes, that is exactly it, is it the & that makes that function?
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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