Solved Excel 365 - line graph problem


tpriest

Active member
Local time
12:53 PM
Posts
34
OS
Win 11 Home 25H2 (OS Build 26200.7019)
I have 3 columns of data:
Col.1 Dates in descending chronological order (most recent at top)
Col.2 mpg associated with each date
Col.3 £/litre associated with each date

I want the line graph to show this data with the dates on the X-axis showing the most recent on the left. Seems perfectly reasonable.

When I create the graph I set mpg values on the primary Y-axis, £/litre values on the secondary Y-axis. I also set Format axis (X-axis) to have Dates in reverse order thus giving the most recent on the left.

mpg data is correctly plotted with the data reversed to match the dates on the X-axis, i.e. newest on the left; but £/litre data is not reversed and has the oldest data on the left.

I've tried all sorts of things.
- Reversing the Y-axis just inverts the data vertically.
- Plotting with just one data set and adding the second afterwards gives the same wrong result

It always seems to be the £/litre data set that is plotted incorrectly, even if I initially create the graph with only Dates & £/litre data then add mpg data.

I feel it may well be something to do with the 2 sets of data and their respective Y-axes.

I'm clearly doing something wrong but cannot see what.

Any thoughts?
 

My Computers

System One System Two

  • OS
    Win 11 Home 25H2 (OS Build 26200.7019)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom build
    CPU
    Intel Core i7 14700
    Motherboard
    ASUS PRIME B760M-K D4 (LGA1700)
    Memory
    32GB Corsair Vengeance
    Graphics Card(s)
    Built in
    Sound Card
    Built in
    Monitor(s) Displays
    Benq G2222HDL 21.5"
    Screen Resolution
    1920 x 1080
    Hard Drives
    512Gb SSD
    1Tb SSD
    PSU
    Vida
    Case
    Fractal Pop Air
    Keyboard
    Standard PS/2 wired keyboard
    Mouse
    Microsoft USB wired wheel mouse
    Internet Speed
    500Mbps
    Browser
    Chrome
    Antivirus
    Defender
  • Operating System
    Win 11 Home 24H2 (OS Build 26100.4202)
    Computer type
    Laptop
    Manufacturer/Model
    HP Zbook Fury
    CPU
    12th Gen Intel Core i5-1150H
    Motherboard
    HP 8AA1 KBC
    Memory
    16Gb
    Graphics card(s)
    Built in
    Sound Card
    Built in
    Hard Drives
    1Tb SSD
    Internet Speed
    500Mbps
    Browser
    Chrome
    Antivirus
    Defender
Solved it. It's due to Excel adding a second horizontal axis when a second data set is added and this doesn't take on the Reverse property of the first horizontal axis. This axis is hidden. So had to make it visible, set it to Reverse, then hide it.
 

My Computers

System One System Two

  • OS
    Win 11 Home 25H2 (OS Build 26200.7019)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom build
    CPU
    Intel Core i7 14700
    Motherboard
    ASUS PRIME B760M-K D4 (LGA1700)
    Memory
    32GB Corsair Vengeance
    Graphics Card(s)
    Built in
    Sound Card
    Built in
    Monitor(s) Displays
    Benq G2222HDL 21.5"
    Screen Resolution
    1920 x 1080
    Hard Drives
    512Gb SSD
    1Tb SSD
    PSU
    Vida
    Case
    Fractal Pop Air
    Keyboard
    Standard PS/2 wired keyboard
    Mouse
    Microsoft USB wired wheel mouse
    Internet Speed
    500Mbps
    Browser
    Chrome
    Antivirus
    Defender
  • Operating System
    Win 11 Home 24H2 (OS Build 26100.4202)
    Computer type
    Laptop
    Manufacturer/Model
    HP Zbook Fury
    CPU
    12th Gen Intel Core i5-1150H
    Motherboard
    HP 8AA1 KBC
    Memory
    16Gb
    Graphics card(s)
    Built in
    Sound Card
    Built in
    Hard Drives
    1Tb SSD
    Internet Speed
    500Mbps
    Browser
    Chrome
    Antivirus
    Defender

Latest Support Threads

Back
Top Bottom