How to make dynamic charts in Excel by using non-blank values?

comeacross

New Member
Joined
Jul 4, 2017
Messages
6
Hi all,

Could you help me with a pie chart problem?

I have two input ranges, say A1:A50 and B1:B50.

The cells in these ranges contain formulas, that will either return a value (country name for column A and percentage for column B) or a blank (" ").

The pie chart shows all the blanks as 0. I want the pie chart to only show the non-blanks. If A is non-blank, B is automatically also non-blank.

This is the formula that I used:


=IF(COUNT($K$61:$K$127)>=ROWS(K$61:K61);INDEX($B$61:$B$127;MATCH(IF(LEN($K$61:$K$127)>0;ROW($K$61:$K$127);0);"")))

Then the results turned to be "#VALUE!". Any ideas about how to solve this problem?

Thanks in advance for your help!:):):)




 
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi all,

Sorry for the last post which I did not describe my questions clearly. So I make it more clear in this post. Thank you so much for your help.
 
Upvote 0
Hi, dear all. Is anyone there have some ideas or hints about how to solve this problem. I am so appreciate for your help. Wish you have a nice day. Thank you so much.:):):)
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

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