Solved

Reference number in excel

Posted on 2013-12-19
2
251 Views
Last Modified: 2013-12-19
In column Z I have a list of numbers that are in the form of percents. In column AA I have a numbers that have no decimal place. In column AB I want to have the Column Z/Column AA.

I used the following code:     =Z2&"/"&AA2

The result would look something like this: 11%/25. Instead I am getting the following:

.107758620689655/24.874158743

How to I keep the numbers formatted like I want them?

Thanks!
0
Comment
Question by:cansevin
2 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 250 total points
ID: 39729633
=TEXT(Z2,"#%")&"/"&TEXT(AA2,"#")
0
 
LVL 2

Assisted Solution

by:mcj2006
mcj2006 earned 250 total points
ID: 39729659
I'm guessing that for cell AA is formatted to show 0 decimal places and is rounding to 25.
If that is the case you could change your code to
=TEXT(Z2,"#%")&"/"&ROUND(AA2,0)
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question