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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Chris Macro

Well-known Member
Joined
Nov 2, 2011
Messages
1,345
Office Version
  1. 365
Platform
  1. Windows
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

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
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,195,631
Messages
6,010,785
Members
441,569
Latest member
PeggyLee

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
Top