displaying fractions in a concatenate formula

D

DavidObeid

If I have a formula that concatenates text and numbers, for example,
=concatenate("The average of ",A1," and ",A2," is = ",(A1+A2)/2) and I
want the formula to display the "(A1+A2)/2" part as a fraction. The
values in A1 and A2 will be integers.

Can this be done in a non-VBA way?

I'm using Excel 2003.

Thanks in advance,

Dave.
 
D

davesexcel

DavidObeid said:
If I have a formula that concatenates text and numbers, for example,
=concatenate("The average of ",A1," and ",A2," is = ",(A1+A2)/2) and I
want the formula to display the "(A1+A2)/2" part as a fraction. The
values in A1 and A2 will be integers.

Can this be done in a non-VBA way?

I'm using Excel 2003.

Thanks in advance,

Dave.
="The Average of"&A1&" "&A2&" "&"is= "&(a1+a2)/2
should work
notice the spaces
 
D

DavidObeid

Thanks,

I tried it, but it didn't work.

Here is (exactly) what I got after entering 3 in A1 and 4 in A2:

"The Average of3 4 is= 3.5
 
D

DavidObeid

Thanks again, but now I get this:

The Average of 3 and 4 is= 3.5

I'm still not getting the 3.5 to read as 3 1/2
 
D

Dave Peterson

Use
="The Average of "&A1&" and "&A2&" "&"is = "& TEXT((A1+A2)/2,"# ??/??")

You may want to use more ??? depending on what you want for the denominator.
 
D

davesexcel

="The Average of "&A1&" and "&A2&" "&"is= "&TEXT(((A1+A2)/2),"#?/?")
Okay I am getting closer I am now at 7/2
still working on the format
 
D

davesexcel

davesexcel said:
="The Average of "&A1&" and "&A2&" "&"is= "&TEXT(((A1+A2)/2),"#?/?")
Okay I am getting closer I am now at 7/2
still working on the format
Oh,
I see dave got it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top