+ Reply to Thread
Results 1 to 4 of 4

Formula for a range that takes x values from two columns in a particular order?

  1. #1
    Registered User
    Join Date
    02-02-2021
    Location
    Virginia
    MS-Off Ver
    365
    Posts
    13

    Formula for a range that takes x values from two columns in a particular order?

    Hi,
    I am trying to make an line/scatter line chart for trend analysis where there are x-axis data in in two columns and y-axis values are in two columns.
    In the attached image, I would like to use columns D and I as x-values and E and J as y-values. However, I want the points to display in order of the x axis value. If I simply select each column the trend line will display as the points in column D connected and then a line to the points in column I. What I need is to display D4, followed by I4, followed by D5, I5,D6,I6 and so on, connected by a line in that order.
    Is there a named range formula I can use for the x-axis and then use the offset function for the y-axis?
    Thank you!

    Screenshot 2021-03-25 120717.png

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,854

    Re: Formula for a range that takes x values from two columns in a particular order?

    I don't think a chart is going to be able to easily do this by itself.

    Would you be allowed to make a copy of the data arranged so the chart can do this? The chart will do this if you can arrange the data (or a copy of the data) in the spreadsheet so that it is arranged
    Please Login or Register  to view this content.
    then use this pair of columns as the source data for the chart. If I understand what you want, it is going to be very difficult using the data exactly as shown in your picture, but should be very easy if you can rearrange (a copy) of the data.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    02-02-2021
    Location
    Virginia
    MS-Off Ver
    365
    Posts
    13

    Re: Formula for a range that takes x values from two columns in a particular order?

    I can copy the data to make this work. We generally prefer to keep data from the same QC batch in one row because it is easier to review, but it its not a must. I'd like to do this with out having to manually copy and paste. I'm not sure the best way to go about it.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,854

    Re: Formula for a range that takes x values from two columns in a particular order?

    I'd like to do this with out having to manually copy and paste. I'm not sure the best way to go about it.
    A lookup function can be useful for this as well as other tools. Are the x values always 1, 2, 3, 4, ...? Are they always divided odd/even like in your example (odd x always in D and even x always in I)? Any other patterns or considerations that need to be considered when programming a more automated solution?

    Assuming x is always count numbers and always split even/odd like in your picture, something like
    Please Login or Register  to view this content.
    choose a pair of columns that work for you or even put this copy of the data on a different tab, and do something like I describe above. As noted, I'm assuming x will always be 1,2,3,4,5... and they are always split even/odd as shown above. If my assumptions are off, then adapt the formulas accordingly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 04-21-2019, 03:57 PM
  2. [SOLVED] Formula to copy across a range of cells that takes account of increments
    By The_Snook in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-01-2018, 04:18 PM
  3. Need a COUNTIF formula that takes unique values into account
    By Meggo12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-05-2016, 04:17 PM
  4. [SOLVED] Need A Macro that takes comma delimited values in select columns and seperates them to row
    By TroyBehmer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-19-2015, 08:16 PM
  5. Replies: 10
    Last Post: 06-13-2013, 04:12 PM
  6. [SOLVED] Formula that takes takes out a specific word/number from text string
    By ncalvelo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2012, 10:21 AM
  7. [SOLVED] Removing Two Highest Values, Columns not in order
    By dmeyer1982 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-20-2012, 01:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1