Greetings all!
Having just implemented the awesomeness found in the article "How to cook a delicious dynamic chart that will have your boss drool" on this site (sorry - I would provide a link but am not sure how in the forum) I thought I'd like to add one additional bit of awesomeness...a dynamic title for the chart.
This requires - I think - some conditional concatenation. However when I try it I don't "quite" get what I want.
Let's use the series headings from the article and put them in column A.
Column A
A1=Sales
A2=Profits
A3=Customer
In cell B1 I would like to concatenate these, but with a twist.
If A1 is blank, b1=concatenate(A2, " x ",A3)
If A2 is blank, b1=concatenate(A1, " x ", A3)
If A3 is blank, b1=concatenate(A1," x " A2)
If A1 and A2 are blank, b1=A3
If A1 and A3 are blank, b1=A2
If A2 and A3 are blank, b1=A1
Now, one more twist - I am not allowed to use macros in the workbooks, so no VBA.
After searching all over the web (including here) I've tried various codes/nested "if" things and have gotten close to what I want, but I am having a mental block on executing what is needed to get to my goal. Here's the code I currently have.
It FEELS like I am close...but can't quite figure out the nesting properly or something?
Thanks in advance. I'm sure one of the brilliant minds on this site will just laugh at my predicament, but I'll suffer the slings and arrows to learn how to do this.
Mike
Having just implemented the awesomeness found in the article "How to cook a delicious dynamic chart that will have your boss drool" on this site (sorry - I would provide a link but am not sure how in the forum) I thought I'd like to add one additional bit of awesomeness...a dynamic title for the chart.
This requires - I think - some conditional concatenation. However when I try it I don't "quite" get what I want.
Let's use the series headings from the article and put them in column A.
Column A
A1=Sales
A2=Profits
A3=Customer
In cell B1 I would like to concatenate these, but with a twist.
If A1 is blank, b1=concatenate(A2, " x ",A3)
If A2 is blank, b1=concatenate(A1, " x ", A3)
If A3 is blank, b1=concatenate(A1," x " A2)
If A1 and A2 are blank, b1=A3
If A1 and A3 are blank, b1=A2
If A2 and A3 are blank, b1=A1
Now, one more twist - I am not allowed to use macros in the workbooks, so no VBA.
After searching all over the web (including here) I've tried various codes/nested "if" things and have gotten close to what I want, but I am having a mental block on executing what is needed to get to my goal. Here's the code I currently have.
Code:
IF(A1<>"",A1&" x ","")&IF(A2<>"",A2&" x ","")&IF(A3<>"",A3,"")
It FEELS like I am close...but can't quite figure out the nesting properly or something?
Thanks in advance. I'm sure one of the brilliant minds on this site will just laugh at my predicament, but I'll suffer the slings and arrows to learn how to do this.
Mike