+ Reply to Thread
Results 1 to 8 of 8

How to separate numbers in a column to put in 3 different columns

  1. #1
    Forum Contributor Brian.Aerojet's Avatar
    Join Date
    03-25-2017
    Location
    TN-USA
    MS-Off Ver
    2016 365
    Posts
    173

    How to separate numbers in a column to put in 3 different columns

    Hi All,

    I have added an attachment and explaining in the attachment of what I need.

    It has confused me because of dates.

    I need to take a column of numbers and put into 3 separate columns. It will follow a pattern

    I put in data 3 times a day and then on Sunday only once.

    I have 3 different columns that the 1st number will go in column J for that date, the 2nd number which is same Date will go in column L, and then the 3rd number

    of same date will go in column N.

    Once I get to Sunday, that number will go in column N also, right after the last number added on Saturday, after Sunday number is added, then it just repeats back to column J for the 1st number on Monday.

    Thanks in advance
    Brian
    Attached Files Attached Files
    Brian

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: How to separate numbers in a column to put in 3 different columns

    So, do you want 3 rows for each date except Sundays, with the 3 numbers on separate rows as you have them now, or do you want just one row for each date?

    Pete

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to separate numbers in a column to put in 3 different columns

    Try this:

    P8 =IFERROR(INDEX(C$8:C$36,MATCH(0,COUNTIF(P$7:P7,C$8:C$36),0)),"") Ctrl Shift Enter

    J8 =IFERROR(INDEX(D$8:D$36,SMALL(IF(C$8:C$36=P8,ROW(C$8:C$36)-(ROW(C$8)-1)),COUNTIF(C$8:C$36,P8)-2)),"") Ctrl Shift Enter

    L8 =IFERROR(INDEX(D$8:D$36,SMALL(IF(C$8:C$36=P8,ROW(C$8:C$36)-(ROW(C$8)-1)),2)),"") Ctrl Shift Enter

    N8 =IFERROR(INDEX(D$8:D$36,SMALL(IF(C$8:C$36=P8,ROW(C$8:C$36)-(ROW(C$8)-1)),COUNTIF(C$8:C$36,P8))),"") Ctrl Shift Enter

    Drag all formulas down until you get blanks.

  4. #4
    Forum Contributor Brian.Aerojet's Avatar
    Join Date
    03-25-2017
    Location
    TN-USA
    MS-Off Ver
    2016 365
    Posts
    173

    Re: How to separate numbers in a column to put in 3 different columns

    Pete,
    I would like to have them the way I have it set now
    If I put them in a row for each date like you suggested it would interfere
    With other formulas I have that correspond with this sheet

    Thanks for your help
    Brian

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: How to separate numbers in a column to put in 3 different columns

    Put the following formulae in the cells stated:

    J8: =IF(WEEKDAY(C8)=1,"",IF(COUNTIF(C$8:C8,C8)=1,D8,""))

    L8: =IF(WEEKDAY(C8)=1,"",IF(COUNTIF(C$8:C8,C8)=2,D8,""))

    N8: =IF(WEEKDAY(C8)=1,D8,IF(COUNTIF(C$8:C8,C8)=3,D8,""))

    then copy down as far as you need to.

    Hope this helps.

    Pete

  6. #6
    Forum Contributor Brian.Aerojet's Avatar
    Join Date
    03-25-2017
    Location
    TN-USA
    MS-Off Ver
    2016 365
    Posts
    173

    Re: How to separate numbers in a column to put in 3 different columns

    Pete,

    Thanks for your help with my issue

    Worked like a charm

    Thanks,

    Brian

  7. #7
    Forum Contributor Brian.Aerojet's Avatar
    Join Date
    03-25-2017
    Location
    TN-USA
    MS-Off Ver
    2016 365
    Posts
    173

    Re: How to separate numbers in a column to put in 3 different columns

    63falcondude,

    Your formulas you give me worked good

    So many ways to do just little things in excel.

    Im so glad to have Experts and Guru's like you and Pete to help us on this forum

    Thanks,
    Brian

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to separate numbers in a column to put in 3 different columns

    G;ad we could help. Thanks for the rep!

+ 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. [SOLVED] Separate input numbers into separate columns.
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2015, 04:23 AM
  2. Replies: 4
    Last Post: 07-25-2014, 12:59 AM
  3. [SOLVED] Match Multiple Columns from Separate Sheet to get separate column.
    By gvitoro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2014, 03:38 PM
  4. [SOLVED] 2 separate columns with numbers separated by commas and single numbers not, need sum
    By Slothbob in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-22-2013, 04:33 PM
  5. Replies: 4
    Last Post: 10-01-2012, 12:55 PM
  6. Replies: 10
    Last Post: 03-08-2012, 12:31 PM
  7. Replies: 2
    Last Post: 11-20-2010, 07:59 PM

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