VBA Question

DomoKing

New Member
Joined
Jan 31, 2018
Messages
7
Hi All,

I want to know how do I make it so that for a set of 2 data bars on a chart, if the corresponding cells have N/A values, then it just won't show up on the bars at all. I am sure its just an if statement but not sure how to implement it, any advice would be well appreciated.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Re: VBA Question Urgent!

Hi,

Do you can use this: "If(IsError(Expression);"";Expression)).

Regards!



|L|E|A|N|D|R|O| |B|A|R|B|O|S|A|
|S|O|L|I| |D|E|O| |G|L|O|R|I|A|
 
Upvote 0
Re: VBA Question Urgent!

Thanks for the response, however I want to implement that in vba using macros, is there a way to translate the above expression into a macro expression? Thanks.
 
Upvote 0
Re: VBA Question Urgent!

But how do I do that without altering the original formulas in the cells?
 
Upvote 0
Re: VBA Question Urgent!

But how do I do that without altering the original formulas in the cells?

You will nest to the existing formula.

Example:

Existing formula: VLOOKUP(1,B1:C4,2)

If not exist value, the result is "NA"

With the "=IFERROR(": =IFERROR(VLOOKUP(1,B1:C4,2),"",VLOOKUP(1,B1:C4,2))
 
Last edited:
Upvote 0
Re: VBA Question Urgent!

Cross post https://www.excelforum.com/excel-programming-vba-macros/1218719-n-a-question-for-chart.html

Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Re: VBA Question Urgent!

Cross post https://www.excelforum.com/excel-programming-vba-macros/1218719-n-a-question-for-chart.html

Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.




Excuse me Mr. Fluff , but i don't understand. The answer #8 is to me?
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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