I rarely use excel and do not have a deep understanding of graphics and graphics related functions. Having said that ...
I have dozens of rows of data consisting of 4 columns
- column 1 = amount / price (in numbers)
- column 2 = description (as in the text)
- column 3 = category (in text)
- column 4 = subcategory (in text)
I want to create a histogram of my data rows so that the end result looks like this:
X axis - categories Y axis - quantity / price
The trick here for the categories is NOT to be repeated. For example, if our data is similar to ...
- 100 | boat purchase | boats | 3 motor boat
- 200 | boat purchase | boats | 2 motor boat
- 500 | buying an airplane | airplanes | 4 engines
- 900 | car purchase | cars | 1 car engine
Then on my schedule there should be only one instance of boats, planes and cars, under which all related data will be summarized.
And last but not least, I saw graphs in which these uniquely non-repeating categories, and not just one “bar”, as it were, consist of smaller bars. In this case, I want these smaller columns to be subcategories, so the end result will look like this:

For the first time in this sample image, I present a “basic classic” graph, where blue, yellow, and red each represent a unique, different category. Right below is what I want, a “breakdown” of each category into subcategories, where blue / yellow / red each represents an imaginary 3 different subcategories for each category.
This means that the subcategories will be repeated for each category, but the categories themselves will not.
For clarification, I currently have only 3 main categories and 6 or so subcategories, but this may change in the future, therefore, the desire to have it in automatic / dynamic mode
Regards G.Campos
EDIT: new image:
