+ Reply to Thread
Results 1 to 15 of 15

Good Morning- Can I delete the last line in all 5000 cells

  1. #1
    Registered User
    Join Date
    01-29-2005
    Posts
    15

    Talking Good Morning- Can I delete the last line in all 5000 cells

    Hello,
    Thank you for reading my forum post.
    I have a excel doc with 5000 item descriptions. Each of the 5000 cell's has a text paragraph in it. All of these cells are in 1 column with 5000 rows. I need to delete the last line of every cell in this whole doc.

    Thank you for your help.

    Have a nice day.

    Rob

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    I think we'll need an example of the kind of text you're asking us to deal with. Otherwise, we'll just be guessing at possible text patterns, etc.

    Ron

  3. #3
    Registered User
    Join Date
    01-29-2005
    Posts
    15

    Cool Delete last line of cell text

    Hello Ron,
    I have a excel file of 5000 + items in it. In the description column there is a cell for each item. The cell has general text description of the item. See below. I am trying to delete the last line which is the Html link to the Manufacturer. When viewing the cell in my excel file the whole html text sentence is on one single line not split like it shows here. I want to delete this last whole text sentence from all the cells in the excel file. Is it possible?

    OPTIONS - SLCDR Slim 24x CD-ROM Drive
    SLDVDCDRW Slim CD-RW/DVD-ROM Drive
    BBPCMB Steel Mounting Bracket
    POWER- Input : 100 ~ 240V AC universal
    Output: 19V DC out
    SIZE - 5.82"w x 2.79"h x 10.2"d
    WT.- 5.61 lbs.
    <ahref="http://www.4xem.com/products.php?category=15"target="_blank">www.4xem.com</a>

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Try this:

    1)Select the column with the problem text
    2)Edit>Replace
    Find what: <ahref*
    Replace with: (leave this one blank)
    Click [Replace All]

    Does that handle your problem?

    Ron

  5. #5
    Registered User
    Join Date
    01-29-2005
    Posts
    15

    Red face Delete last line of cell text

    Hello
    I made a typing error. The last line looks like this. Reminder, it is all in one line , not split like showing here.
    <a href="http://www.4xem.com/products.php?category=15"target="_blank">www.4xem.com</a


    thanks

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    You just need to slightly change what I posted:

    1)Select the column with the problem text
    2)Edit>Replace
    Find what: <a href*
    Replace with: (leave this one blank)
    Click [Replace All]

    Does that work now?

    Ron

  7. #7
    Registered User
    Join Date
    01-29-2005
    Posts
    15

    Exclamation Delete last line of cell text

    Hello,
    I get a window that pops up and say's "formula too long"

    I wonder if there is a formula I could enter in the column next to this column which would erase the last line.??

    Robert

  8. #8
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I entered your sample into a cell in a test spreadsheet. I pressed CTRL+H and entered <ahref* into the "Find what:" box and left the "Replace with:" box blank. When I clicked Replace All, my test cell had the entire link removed.

    Are you sure you followed Ron's instuctions exactly?
    Bruce
    The older I get, the better I used to be.
    USA

  9. #9
    Registered User
    Join Date
    01-29-2005
    Posts
    15

    Unhappy Delete last line of cell text

    Hello,
    When I try the exact instructions it gives a "formula too long" error, Because the cell contents are to long. When I deleted 80% of the cell text and tried it again it would work. It will work when there is only five of so text sentences but not in my long text cell.

    Any suggestions?

  10. #10
    Registered User
    Join Date
    01-29-2005
    Posts
    15

    Delete last line of cell text

    My cells are about this long. The replace option will not work unless I delete about 80% of it.

    MODEL- BBPC1GBLAN VENDOR- 4XEM CORP

    FEATURES- VERSA Barebone Ultra Mini PC- Black
    VERSA Barebone Ultra Mini PC with (1) Gigabit LAN port.
    Intel 865GV Chipset. Supports Intel P4 & Celeron, up to 2GB SDRAM.
    Ethernet, Firewire, USB, Serial, Parallel Ports. Supports one slim
    optical drive and one 3.5" ATA EIDE Hard Disk.
    All the common features of our VERSA Barebone Ultra Mini PC plus
    1 Gb LAN Port for applications that require high network
    throughput.
    Note: Barebone systems include the casing, motherboard, CPU heatsink
    and cooling fan, AC/DC Power supply, Power cable, Package of
    Screws, Rubber feet, driver disk and manual.
    CPU, memory, hard disk and CD drive must be added by customer.
    * Fully functional Pentium 4 system up to 3.2Ghz
    * On-board 10/100 LAN, 1394, USB 2.0
    * Fully support Intel Hyper Threading Technology
    * Low noise and low power consumption
    * Support standard 3.5" hard disk
    * Intel 865GV/ICH 5, supporting 800MHz FSB

    -- SPECIFICATIONs ------------------------------------
    PROCESSOR - Accepts Intel Pentium 4 & Celeron processors 2.0 Ghz to
    3.2 GHz, Supports Hyper Threading Technology, VRM 10.0
    standard.
    CORE LOGIC - Intel 865GV/ICH 5 (North/South), FSB support up to 800Mhz
    MEMORY - Supports Dual-Channel DDR 400/333/266 DIMM up to 2 GB
    (2048MB), with 512Mb technology.
    STORAGE - CD-ROM: Supports all Standard Slim CD-ROM/DVD-ROM, CD-RW,
    DVD-RW Combo drives.
    HDD : Supports all 3.5" standard IDE hard drive,
    ATA-100/66/33 drives.
    PCI IDE - Dual Independent ATA-100/66/33 support, Supports up to 4 IDE
    devices on dual channel.
    AUDIO - Integrated Software AC 97 Audio CODEC, Realtek 650
    VIDEO - Integrated Intel Extreme Graphics 2, Support up to 64MB DVMT
    video memory.
    NETWORKING - Integrated high speed Ethernet 1000/100/10Mbps LAN
    controller.
    FIREWIRE - Integrated OHCI 1394a 1.1 compliance, Support up to 400Mb
    transfer rate.
    CONNECTORS - Back Panel : (2) PS/2 ports for keyboard & mouse
    (1) RS232/Serial (COM) port
    (1) 15-pin VGA port
    (1) 19V DC Power Jack input
    (1) PC-104 Plus port
    (1) 10/100/1000 Mbps/RJ45 LAN port
    (2) USB 2.0 ports
    (1) Parallel port
    (1) Line-Out jack
    Front Panel: (1) Microphone port
    (1) IEEE-1394a/FireWire port
    (1) 10BaseT/100BaseTX/RJ45 LAN port
    CONTROLS - Front Panel: (1) Power-on Button
    (1) Reset Button
    (1) Power-on and HDD LED
    MISCELLANEOUS- Hardware Monitor: System, processor temperature, voltage and
    fan speed monitor.
    Cooling Fan : Internal thermal controlled CPU only
    Auto Thermal FAN Speed Control
    Power Management: ACPI 1.0b compliance and OS direct power
    management.
    Wake-on Event : RTC/USB keyboard/modem/LAN/keyboard/mouse.
    ENVIRONMENTAL- Operating Temperature: 10 ~ 35 degrees C
    Storage Temperature : -40 ~ 70 degrees C
    Storage Humidity : 20% ~ 90% (non-condensing)
    OPTIONS - SLCDR Slim 24x CD-ROM Drive
    SLDVDCDRW Slim CD-RW/DVD-ROM Drive
    BBPCMB Steel Mounting Bracket
    POWER- Input : 100 ~ 240V AC universal
    Output: 19V DC out
    SIZE - 5.82"w x 2.79"h x 10.2"d WT.- 5.61 lbs.
    <a href="http://www.4xem.com/products.php?category=15"target="_blank">www.4xem.com</a>

  11. #11
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    try this in a helper column next to your Description cell (B1?):

    =LEFT(B1,FIND("<",B1)) assuming you don't use the 'less than' sign (<) anywhere in your description before the web link.

    HTH

  12. #12
    Registered User
    Join Date
    01-29-2005
    Posts
    15

    Exclamation Delete last line of cell text

    Hello,
    It is raining , snowing and thundering outside in California and you guys back east are going to get it in a few days.
    Another foot of snow here last night. The birds dont know what to do.

    Anyways.
    I get a error when inserting the formula in B1 that says trying to create a circular reference. Nothing shows up.
    uhg

  13. #13
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I don't know what cell your description is in. In my example, I assumed B1. In a 'helper column' (like C1) enter the formula. Don't put it IN B1.

    HTH

  14. #14
    Registered User
    Join Date
    01-29-2005
    Posts
    15

    Delete last line of cell text - it works

    Yes I had my description cell in A1 and put the formula in B1 and that is why it did not work.
    I then put the description in B1 and the formula in C1 and it worked.
    Thank you very much. I really appreciate your help.
    It has been cold here. I am out of firewood, and the Heater broke. I am just a little slow today.

    Thank you. Take care.

  15. #15
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Well, I'm glad we got it figured out. I'm in Minnesota...no snow here!!!

    Thanks for the feedback.

    Cheers

    Bruce

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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