+ Reply to Thread
Results 1 to 9 of 9

Fixing Into A Preferred Format

  1. #1
    Registered User
    Join Date
    10-16-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2016
    Posts
    55

    Fixing Into A Preferred Format

    Hi,

    Good day!

    I'm getting a file with a format that is hard to use formula or add to another sheet. I would like to change it to my preferred format so I could integrate it with my tables. I'v attached the file with the format I'm receiving and the preferred format. Is this possible to do in Excel? Please help.
    Attached Files Attached Files
    Last edited by thebrucekt; 11-07-2017 at 04:25 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Fixing Into A Preferred Format

    Hi thebrucekt,

    Because you have Excel 2016 you can use Power Query to convert your data. See sheet 3 where I did a little PQ on it. Click on the data tab and view query. See if this will work for you.

    Attached deleted as per OP request.
    Last edited by MarvinP; 11-07-2017 at 09:16 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Fixing Into A Preferred Format

    hi there. another alternative is using formulas. in G5:
    =IFERROR(MID(C5,FIND("Name: ",C5)+6,FIND(" (",C5)-FIND("Name: ",C5)-6),"")

    in H5:
    =IFERROR(--MID(C5,FIND("(",C5)+1,FIND(" records",C5)-FIND("(",C5)-1),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    10-16-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2016
    Posts
    55

    Re: Fixing Into A Preferred Format

    Hi Benishiryo,

    how if I don't want any spaces between the rows? what can i edit?

    in G5:
    =IFERROR(MID(C5,FIND("Name: ",C5)+6,FIND(" (",C5)-FIND("Name: ",C5)-6),"")

    in H5:
    =IFERROR(--MID(C5,FIND("(",C5)+1,FIND(" records",C5)-FIND("(",C5)-1),"")
    Last edited by thebrucekt; 11-07-2017 at 04:56 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Fixing Into A Preferred Format

    Which proposed solution are you questioning?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    10-16-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2016
    Posts
    55

    Re: Fixing Into A Preferred Format

    Hi AliGw,

    with this:

    how if I don't want any spaces between the rows? what can i edit?

    in G5:
    =IFERROR(MID(C5,FIND("Name: ",C5)+6,FIND(" (",C5)-FIND("Name: ",C5)-6),"")

    in H5:
    =IFERROR(--MID(C5,FIND("(",C5)+1,FIND(" records",C5)-FIND("(",C5)-1),"")

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Fixing Into A Preferred Format

    I would use the PowerQuery solution!

  8. #8
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Fixing Into A Preferred Format

    i agree with AliGW, but i do understand there are all kinds of reasons not to use a particular solution. in cell G5, change all cell reference C5 to be:
    INDEX(C:C,5+(ROWS($G$5:G5)-1)*2)
    so:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    H5 would be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I5:
    =INDEX(D:D,5+(ROWS(I$5:I5)-1)*2)
    copy across to column J

  9. #9
    Registered User
    Join Date
    10-16-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2016
    Posts
    55

    Re: Fixing Into A Preferred Format

    All I can say is WOW!
    Thank you so much to MarvinP , AliGw and to benishiryo !

+ 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] Need help: To get the preferred data
    By pranajit in forum Excel General
    Replies: 4
    Last Post: 05-28-2016, 02:14 AM
  2. Fixing Format for Telephone Numbers
    By chcalissie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-07-2015, 09:42 AM
  3. Locking or Fixing the Format of columns
    By Desree86 in forum Excel General
    Replies: 4
    Last Post: 02-07-2014, 08:43 AM
  4. Excel VBA to open new outlook message with signature and preferred body text format
    By morayman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2013, 10:01 AM
  5. [SOLVED] SUM of preferred cells in two ranges.
    By tomshanan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2013, 07:34 AM
  6. fixing corrupted files in xls format
    By Mike in forum Excel General
    Replies: 1
    Last Post: 04-30-2006, 02:15 PM
  7. [SOLVED] preferred app?
    By nastech in forum Excel General
    Replies: 0
    Last Post: 11-25-2005, 11:20 AM

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