1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

How to make a mathematical formula operate in the same cell in which I input a number?

Our take

If you're looking to input a score directly into a cell and have it instantly convert to a percentage in the same cell, Excel doesn’t support this functionality natively. Formulas typically require a separate cell for results. However, you can explore using VBA (Visual Basic for Applications) to create a macro that triggers upon entering a score, performing the calculation, and updating the same cell with the percentage. This approach empowers you to streamline data entry while maintaining a clean spreadsheet.

I have students doing an exam of 53 questions.

When they tell me the score, eg. 46 out of 53 questions correct, I want to put that number into a cell, and then have it automatically convert it to a percentage in that same cell. Is there a way to do this in the same cell into which I input the number?

example. in Cell B3.

I put in the number 45.

Excel makes a calculation of "45 divided by 53 multiplied by 100" and puts the result as a percentage in the same cell (B3) where I input the value 45, in this case 86.79%.

I know how to do this using more than one cell, where the formula is put in to cell B4, which would tell excel to take the value of cell B3, apply the formula, and get the result in cell B4. I am trying to find out if I can do it inside the cell without additional cells and external cell references.

Thanks!

submitted by /u/22EatStreet
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with

#Excel compatibility#Excel alternatives for data analysis#Excel alternatives#AI formula generation techniques#formula generator#rows.com#mathematical formula#Excel#cell#percentage#score#questions#calculation#input#output#correct#division#multiplication#value#reference