+ Reply to Thread
Results 1 to 15 of 15

Add dashes to fractions in html

  1. #1
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Add dashes to fractions in html

    Over 3K rows ---- Is there a way to add dashes to fractions

    Example

    Please Login or Register  to view this content.
    Would like

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 01-12-2017 at 05:57 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add dashes to fractions in html

    I assume your data start in A1, so try in B1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Re: Add dashes to fractions in html

    Hi Sandy,

    Thank you for your help.Worked on only the first bullet point. Here are the results.

    Please Login or Register  to view this content.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add dashes to fractions in html

    This is a result of the same formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can try this one:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    but if you have something different than space (CHAR(32) you need to know what is it.

    attach example file with more data what will be more representative.
    Last edited by sandy666; 01-12-2017 at 06:05 PM.

  5. #5
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Re: Add dashes to fractions in html

    Tried no luck

    File attached
    Attached Files Attached Files

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add dashes to fractions in html

    Could you tell me how you paste all code into excel? I copied and paste it from your post and have every code line in different row. One line - one row.

  7. #7
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Re: Add dashes to fractions in html

    Just copied and pasted the entire column. There are returns in the code in the rows.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add dashes to fractions in html

    I copied your column and use Text Import Wizard. Formula works. See attachemnt.
    Btw. If you want your way you need look for VBA soultion I think.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Re: Add dashes to fractions in html

    All items in the column and row that were in one row are now in different rows.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add dashes to fractions in html

    Try this way:
    1. On sheet1 where <ul><li>xxx</li> ....</ul> is in one cell in B1 type =TRIM(A1) and drag down.
    2. Select column B, Copy
    3. Create text document (Notepad) and open
    4. Paste into text document
    5. Select all in text document and copy
    6. Create new sheet in you excel file, say sheet2
    7. On sheet2 select A1 and from the menu bar select Paste=>> Text Import Wizard , remove all checks there, Next, Finish
    8. On Sheet2 in B1 paste formula: =IFERROR(REPLACE(A1,SEARCH(" ? ",A1)+2,1,"-"),A1) and drag down
    Attached Files Attached Files
    Last edited by sandy666; 01-12-2017 at 07:26 PM.

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add dashes to fractions in html

    Thanks for rep but you forgot mark thread solved (if solved)

  12. #12
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Re: Add dashes to fractions in html

    I tried this but when I import the info it is no longer in the same rows as before.

    Example:

    Row 1 has <ul>
    Row 2 has <li>Hardware: Grace Pull 3 3/4 Inch</li>
    And so on

    I need all info that was in row one to still be in row one on the import. I did try it and it add the dashes to all but I still cant use the data.

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add dashes to fractions in html

    So, result is ok because you got what you wanted.
    Use data is the second problem. Why, how and where you want it to use?
    Last edited by sandy666; 01-12-2017 at 08:01 PM.

  14. #14
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Re: Add dashes to fractions in html

    That column and all its rows are part of a larger spreadsheet that has to match up exactly the way it was taken out as each row is part of different product. Why it did work, I cant use it unless it is put back exactly where I got it.

    I do appreciate your help but I still do not understand why there is no script of formula that will do it the way it is?

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Add dashes to fractions in html

    Excel is not a God. Excel is a puzzle. Only you know what you really want (I don't see it in your description).
    You got what you want from 1st post. Now if you have next problem you need start new thread and type there detailed description with samples.xlsx. Of course, if it applies to excel.

    edit:
    btw. if you want use result from excel in html file, copy result and paste into html because html is a normal txt file with changed extesnsion, and do it on copy not on original file.

    @Administrator: Sucuri CloudProxy - Backend Server timeout, Database error and so on....
    Last edited by sandy666; 01-12-2017 at 08:53 PM.

+ 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. VBA to Import HTML Table Locally Stored HTML file to excel
    By ermengard in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-09-2015, 10:48 AM
  2. Excel ws into outlook html body with current html signature
    By Cadelanne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2014, 09:03 AM
  3. Replies: 3
    Last Post: 01-17-2014, 08:08 PM
  4. convert formated excel column to html source text with html tags
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2011, 04:22 PM
  5. How to add HTML header/footer to export as HTML?
    By JGCA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2009, 04:29 PM
  6. Replies: 1
    Last Post: 05-14-2008, 07:55 PM
  7. Converting Decimal Fractions to Fractions of a Specified Number
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-29-2005, 11:09 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