+ Reply to Thread
Results 1 to 7 of 7

Trying to Find Out Why the Formula is failing

  1. #1
    Registered User
    Join Date
    08-10-2022
    Location
    Toronto
    MS-Off Ver
    2020
    Posts
    42

    Trying to Find Out Why the Formula is failing

    I have a a formula that moves the Year in a row to the be the first text.

    The formula is applied to Column C but starts to fail after line 17.

    Just wondering if someone could let me know what the issue is.

    Basically wherever the year 20** is located, it should move it to the front as it does up to row 16

    Please Login or Register  to view this content.
    formulat error.xlsx
    Last edited by berket; 03-27-2023 at 05:11 PM.

  2. #2
    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,900

    Re: Formula error

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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

  3. #3
    Registered User
    Join Date
    08-10-2022
    Location
    Toronto
    MS-Off Ver
    2020
    Posts
    42

    Re: Formula error

    Title has been edited

  4. #4
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: Trying to Find Out Why the Formula is failing

    Your data after row 15 contains char(160) instead of a space after the Â.
    Without the need of a helper column to get rid of that character in C1 use this formula instead and pull down as needed:

    =REPLACE(MID(SUBSTITUTE(B1,CHAR(160)," "),FIND(" 20",SUBSTITUTE(B1,CHAR(160)," "))+1,5)&SUBSTITUTE(B1,CHAR(160)," "),FIND(" 20",SUBSTITUTE(B1,CHAR(160)," "))+5,5,"")

  5. #5
    Registered User
    Join Date
    08-10-2022
    Location
    Toronto
    MS-Off Ver
    2020
    Posts
    42

    Re: Trying to Find Out Why the Formula is failing

    Thank you this worked!

  6. #6
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: Trying to Find Out Why the Formula is failing

    Thanks for the positive feedback , glad having been of some help.

  7. #7
    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,900

    Re: Trying to Find Out Why the Formula is failing

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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: 05-24-2022, 04:05 AM
  2. Replies: 2
    Last Post: 04-18-2022, 11:22 PM
  3. [SOLVED] Formula error: YEAR & ISO Functions Returning Error
    By zsolt_g in forum Excel General
    Replies: 4
    Last Post: 12-06-2021, 07:31 AM
  4. [SOLVED] #VALUE! Error Using a Triple Nested SUBSTITUTE Formula, ERROR DUE TO EMPTY CELL(S)
    By skite0 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2021, 04:13 PM
  5. Formula not returning correct result. Formatting error or formula error?
    By Yonex1975 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-31-2019, 02:38 PM
  6. [SOLVED] Macro To IGNORE ERROR - Cell With Formula / Green Arrow Error
    By Logit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2018, 09:16 PM
  7. [SOLVED] Inputbox error message. Formula you typed contains an error.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-09-2013, 02:25 PM

Tags for this Thread

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