Transposed data with blank spaces and create a Bar Chat without any space

iansitorus

New Member
Joined
Jun 2, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi MrExcel expert, I really appreciate your help to solve this issue.
I have been working on this issue for a couple of days now and I feel stuck.

Data set: Hours & Date.
Goal:
1. I want to sort the data of "date and hours" which have hours assigned to them, and listed beside of my existing data.
2. Ultimate goal: I want to create a bar chart that represents only the date that has hours assigned to them, without any big gaps in between each bar.

Problem:

1. I found this formula online, but I realized it can't work with date reference and since my"Hours" data is transposed from horizontal data, the formula counts blank as "0" so they still count it as a cell with value (the formula doesn't work).
2. Because the date data is transposed from horizontal data, every blank cell on the reference transposed become 01/00/00
3. I totally don't know the solution to this issue.

Hereby I attached the picture of the data.
1686264629440.png



Looking forward to the discussion and your solution.
Please don't hesitate to ask me for further clarification if my statement does not give you clarity.

Thanks!
 

Attachments

  • 1686263977383.png
    1686263977383.png
    167.6 KB · Views: 8

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about:

Book1
ABCDE
1DateHoursDateHours
21/00/002/12/2023800
31/00/002/19/20231016
41/00/002/26/20231080
51/00/003/5/20231320
61/00/003/12/20231320
72/12/2023800
81/00/00
91/00/00
101/00/00
111/00/00
122/19/20231016
131/00/00
141/00/00
151/00/00
161/00/00
172/26/20231080
181/00/00
191/00/00
201/00/00
211/00/00
223/5/20231320
231/00/00
241/00/00
251/00/00
263/12/20231320
271/00/00
281/00/00
291/00/00
301/00/00
Sheet4
Cell Formulas
RangeFormula
D2:E6D2=FILTER(A2:B30,B2:B30>0)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,330
Members
449,155
Latest member
ravioli44

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