Graphing Problems while using Text() function

Chris Macro

Well-known Member
Joined
Nov 2, 2011
Messages
1,345
Office Version
  1. 365
Platform
  1. Windows
I am creating a single graph that will be reading all sorts of data based on the users selection (ie $, %, integers, etc). So I was going to use the Text() function to make my formats variable (I type in the format for each data set and link that to the TEXT function). It formats my numbers correctly, however nothing is showing up on my graph (looks as if everything is 0). I'm guessing you can't graph numbers as text? Any thoughts on a workaround for this problem?

Simplified Example of what I am doing:

D21 = 3.9
B21 = #0.00

Code:
=TEXT(D21,B21)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
That just undoes the formatting that was instated with the Text() function. According to this link it may not be possible. I might have to come up with a VBA solution to trigger the change.
 
Last edited:
Upvote 0
I am still not clear what you are trying to do. Can you give some examples of data that will be graphed please.

I made a test chart and plotted dollars, plain numbers etc and graph worked fine. If you are trying to control how the graph scale looks, you may need a series of macros that your inputters can select.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

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