+ Reply to Thread
Results 1 to 6 of 6

"IF" formula to bring data to a column with out spaces

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    edmonton canada
    MS-Off Ver
    Excel 2007
    Posts
    86

    "IF" formula to bring data to a column with out spaces

    I an trying to create an "IF" formula to bring data into a separate column without spaces in the new column (I want to bunch the data together in a column)
    i have attached a spreadsheet to show to better explain
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: "IF" formula to bring data to a column with out spaces

    Try this array formula
    Enter in I2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    **Must be entered with Ctrl+Shift+Enter key combination.
    Last edited by AlKey; 09-01-2017 at 01:29 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: "IF" formula to bring data to a column with out spaces

    Use this arrAY FORMULA:

    =IFERROR(INDEX(A:A,SMALL(IF($H$3:$H$225>TIME(0,31,0),ROW($H$3:$H$225)),ROWS(L$9:L9))),"")
    Note (gold cells) some values in column A are missing, but which otherwise meet your criteria.
    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: "IF" formula to bring data to a column with out spaces

    Here is a VBA solution:
    Please Login or Register  to view this content.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    10-25-2010
    Location
    edmonton canada
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: "IF" formula to bring data to a column with out spaces

    thank you all for your help
    the IFERROR works for me but I would like to add IF(A:A="delivery") to filter once more for my result
    as well I would like to eliminate the 0's
    I have added the column on the spreadsheet

    the VBA solution pulls all numbers across without the spaces but does not filter to the >0:30
    Attached Files Attached Files
    Last edited by norm01; 09-02-2017 at 01:31 PM. Reason: attachment

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: "IF" formula to bring data to a column with out spaces

    Amended formula:

    =IFERROR(INDEX(B:B,SMALL(IF($I$2:$I$225>TIME(0,31,0),IF($A$2:$A$225="Delivery",ROW($I$2:$I$225))),ROWS(M$9:M9))),"")

    still an array formula...

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

+ 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] 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
  2. Replies: 1
    Last Post: 08-20-2016, 01:59 AM
  3. [SOLVED] bring value from column header whenever "Yes" is found in the row
    By wellous in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2014, 11:39 AM
  4. Replies: 6
    Last Post: 03-07-2014, 10:34 PM
  5. Replies: 2
    Last Post: 06-25-2013, 12:43 PM
  6. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  7. [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

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