+ Reply to Thread
Results 1 to 6 of 6

Remove #VALUE!

  1. #1
    Registered User
    Join Date
    05-13-2018
    Location
    Sheffield
    MS-Off Ver
    Excel 2007 (Old I know)
    Posts
    7

    Remove #VALUE!

    Hi

    I am using the formula =((LEFT(L4)*3)+RIGHT(L4)) and it is returning #VALUE! which in subsequent pivot tables it creates an error.

    How do I change the formula to read 'If the target cell contains a number then =((LEFT(L4)*3)+RIGHT(L4)) and if it does not, return blank.

    Thank you.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Remove #VALUE!

    Hi, welcome to the forum

    1. You are not using those functions correctly
    - you need to specify how many characters you want for the left/right
    2. Any time you use LEFT/MID/RIGHT, it always returns a text answer, not a number

    so maybe something like this...
    =LEFT(L4,3)*3+RIGHT(L4,3)

    ASSUMING that L4 contains a number??
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-13-2018
    Location
    Sheffield
    MS-Off Ver
    Excel 2007 (Old I know)
    Posts
    7

    Re: Remove #VALUE!

    Hi. The cell L4 in this case will always have numbers in it such as 3.2 for example. What I need it to do it the following (3x3)+(2)= 11. I am using the formula =((LEFT(L4)*3)+RIGHT(L4)). My cells contain only numbers from 1.1, 1.2,1.3, 2.1, 2.3, 2.4 up to 8.3. My problem is that some cells contain a Z rather than a number so =((LEFT(L4)*3)+RIGHT(L4)) is returning #VALUE! which is messing up a subsequent pivot table.
    Last edited by markbarker2000; 05-22-2018 at 07:29 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Remove #VALUE!

    OK, I understand.

    Try this...
    =IFERROR(LEFT(L4,1)*3+RIGHT(L4,1),"")

    I believe it is a good habit to get into, to specify how many characters you want with this. Not using the ,1 in this case, is not wrong, I just prefer to add it

    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile Windows 10, but that is the operating system, not the Office version

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,901

    Re: Remove #VALUE!

    Try:

    =IFERROR("your_formula","")

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Remove #VALUE!

    as with most things excel, there are a number of ways to do the same thing. Here is another way to do that...

    =iferror(INT(L4)*3+MOD(L4,1)*10,"")

+ 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: 9
    Last Post: 11-23-2016, 12:22 PM
  2. Code to remove compare and remove duplicate value between 2 columns
    By winmaxservices1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2015, 02:30 PM
  3. excel macro to remove specific columns and rows + remove duplicate
    By garrywelson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-17-2013, 12:03 PM
  4. Replies: 5
    Last Post: 11-26-2012, 08:44 AM
  5. Replies: 1
    Last Post: 10-23-2012, 09:12 AM
  6. Macro, to remove commas and remove speach marks
    By 5h1l in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2012, 12:06 PM
  7. Need VBA code to remove entries if there are duplicates (remove them totally)
    By BrandonFromSingapore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2012, 12:50 AM

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