+ Reply to Thread
Results 1 to 11 of 11

Error in my formula while tidying my list

  1. #1
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Error in my formula while tidying my list

    Hi Guys,

    I have a list in N

    Apples
    Pears
    Grapes
    (Space)
    (Space)
    Oranges
    Bananas

    I'm looking to tidy this in Column O
    Apples
    Pears
    Grapes
    Oranges
    Bananas

    I have this already done in another spreadsheet and have (as I thought) copied it exactly and just changed the relevant letter for columns but its not ignoring the gaps in my new one. Can you see any errors in the below


    Please Login or Register  to view this content.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Error in my formula while tidying my list

    looks to me like it should work, are you activating it by using ctrl/shift/enter because it is an array formula?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Error in my formula while tidying my list

    Hi

    Yes. Have the Curley brackets by pressing ctl sft enter. Picture attached

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Error in my formula while tidying my list

    I used it exactly as you put it in post 1 and activated it by ctrl/shift/enter and then dragged it down and it got rid of the spaces (though it did not get rid of duplicates though you didn't say that was an issue).
    You may have to post a sample to see what is going on.

  5. #5
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Error in my formula while tidying my list

    While putting together my sample sheet I stumbled across the error. The "blanks are not blanks. They are formula giving a blank result. When I delete the formula in the cells the new list closes the gap. How do I ignore formula with a "" return

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Error in my formula while tidying my list

    Ok, you likely will have to upload a sample.
    Because I put your list as shown in cells L3 through L9 with blanks in L6 and L7. Then I put a formula in N3 through N9 which pulls over the values from col L.
    then I used your formula in O3 and hit ctrl/shift/enter then dragged it down so even with a formula in N6 and N7 giving blanks the formula still ignored those cells and consolidated the list.

  7. #7
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Error in my formula while tidying my list

    Please see attached
    Attached Files Attached Files

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Error in my formula while tidying my list

    you have a space in your reference formula =IF('Set Up'!D3=""," ",'Set Up'!D3)
    change it to =IF('Set up'!D3="","",'Set up'!D3) without the space and you'll be ok and the formula will work.

    Oh, and next time if you can save it as an .xlsx instead of .xls, caused me problems in opening it.

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Error in my formula while tidying my list

    Please change Bank Account N2 to

    =IF('Set Up'!D2="","",'Set Up'!D2)

    or O2 with CSE
    =IF(ROWS(O$2:O2)< COUNTA('Set Up'!D:D),INDEX('Set Up'!D:D,SMALL(IF('Set Up'!$D$2:$D$40<>"",ROW('Set Up'!$D$2:$D$40)),ROWS(O$2:O2))),"")

  10. #10
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Error in my formula while tidying my list

    This fixed my error. Something as silly as "nothing"

    =IF('Set Up'!D2="","",'Set Up'!D2)

    Thanks again to everyone for taking the time

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Error in my formula while tidying my list

    glad I could help, AND thank you for the rep!

+ 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. Tidying this up
    By liamfrancis2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2017, 12:26 PM
  2. Tidying up VBA code
    By MrBibby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2013, 07:29 PM
  3. Replies: 0
    Last Post: 01-09-2013, 11:44 AM
  4. Replies: 3
    Last Post: 07-20-2012, 09:52 AM
  5. Tidying a list
    By pelethar in forum Excel General
    Replies: 2
    Last Post: 06-08-2011, 07:42 AM
  6. Tidying up a formula
    By Mediaid in forum Excel General
    Replies: 2
    Last Post: 03-30-2011, 07:02 PM
  7. [SOLVED] Help Tidying up formula
    By Paul in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2006, 01:00 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