+ Reply to Thread
Results 1 to 4 of 4

Column of Formula generated numbers with some " ", need new column without " "

  1. #1
    Registered User
    Join Date
    04-29-2019
    Location
    Ohio, US
    MS-Off Ver
    2016
    Posts
    2

    Column of Formula generated numbers with some " ", need new column without " "

    Hello. I've been all over the lovely forums for 2 days trying to solve what intuitively seems like an easy problem to solve, but apparently not.

    In short, I need to remove empty cells from a column where the values are dynamic.

    I have a column (CY, in this case) of numbers, with " " interspersed, that are generated by an "IF" formula in other cells. I only mention this because it means that the "empty" cells are not actually blank and the position of the cells with value or without value are not static.

    I simply want to put a formula next to Column CY that copies the same information from CY but without the " ", so I end up with a column of nothing but numbers with no breaks/""/empty cells.

    Worksheet is attached, but for quick example:


    Excel forum example.jpg
    Column CY is generated by formulas, and column CZ is what I'd like it to automatically generate based on CY data.


    The range of cells in question is at CY133:CY146, and the new formula, should I be so lucky as to find a solution, will be placed in CX133 and copied down to CX146, ideally. Open to any solution though.

    I've tried making the IF statement generate 0 as a value instead of "". Also tried TRUE/FALSE. ISNUMBER wont work because the empty cells still return FALSE as they are formula generated. LOOKUP with COUNTIF got me close but wasn't working because it only returned UNIQUE values, rather than simply returning every positive number. INDEX/MATCH was close but not good enough because I'm not trying to match anything, rather, simply return the value if it's a positive number at all.
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Column of Formula generated numbers with some " ", need new column without " "

    Formula in CZ133:

    Please Login or Register  to view this content.
    User Ctrl+Shift+Enter to create an array formula then copy down to CZ146.

    WBD
    Attached Files Attached Files
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: Column of Formula generated numbers with some " ", need new column without " "

    TRY CZ133 cell array formula, copy drag down

    HTML Code: 
    Last edited by wk9128; 09-09-2020 at 07:18 PM.

  4. #4
    Registered User
    Join Date
    04-29-2019
    Location
    Ohio, US
    MS-Off Ver
    2016
    Posts
    2

    Thumbs up Re: Column of Formula generated numbers with some " ", need new column without " "

    They BOTH did the trick!!! WideBoyDixon The first one worked best because there were no zeros at the end of the newly generated list. The solution looks quite similar to one I tried except it didnt include the ISNUMBER function. Wow! Im so happy right now.

    WK9128 The second solution will also work, it just also generates 0's after the positive values/.

    Both great solutions and speedy replies!!!!

    thank you!
    Last edited by Maroonlite; 09-09-2020 at 07:28 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. Replies: 6
    Last Post: 07-16-2017, 09:06 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. Replies: 1
    Last Post: 08-20-2016, 01:59 AM
  4. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  5. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  6. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  7. Applying a "Left" formula to an entire column with heading "ValueCol"
    By aad401 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2012, 04:14 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