+ Reply to Thread
Results 1 to 9 of 9

Problem with returning value in Excel formula

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    5

    Problem with returning value in Excel formula

    Hi,

    I have two sheets where the values ​​are entered in column A of sheet 1 will be copied to column A in sheet 2.

    It works in most cells. However, there are some cells in sheet 2 that instead return ####.

    for example:

    In sheet 1, column A, row 32, I have 555 of valuation input and sheet 2, column A, line 32 formula:

    = IF ('Sheet1'! A32 = 0, "", 'Sheet1'! A32), which returns the value 555

    On row 33, I have the same combination but here it becomes #### in sheet 2.


    I know it's not about the cell is too small, the input value which can cause error #####


    Someone who understands what's wrong?


    Grateful for help

    Regards

    Fredrik

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with returning value in Excel formula

    What is the input value in Sheet1!A33?
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Problem with returning value in Excel formula

    = IF('Sheet1'!A33=0,"",'Sheet1'!A33)

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with returning value in Excel formula

    Still can't reproduce your problem.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    05-07-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Problem with returning value in Excel formula

    Sorry if I was a bit fuzzy, but this is an excerpt from my file that represents row 50-54 in sheets 1-2, column A-B.

    Skärmavbild 2014-05-07 kl. 22.12.10.jpg

    If I delete the numbers that do not work and enter them again, it seems work out better. So it goes of course to solve. However, interesting to know why there are errors in some cells in the first place.

    Most of all, I would like to add a macro that handles this, but unfortunately not the knowledge in VBA.

    Thanks för the help!


    Regard

    Fredrik

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Problem with returning value in Excel formula

    Format cell as text

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with returning value in Excel formula

    I can't tell from the picture but am guessing that the data that you are re-entering in Sheet1!B33 (not A33) must produce an error and I think that the error is:

    There is a negative number in the cell that has been formatted for dates or times. Dates and times in Excel must be positive values

  8. #8
    Registered User
    Join Date
    05-07-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Problem with returning value in Excel formula

    Ha, that simple!

    Thanks!

  9. #9
    Registered User
    Join Date
    05-07-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Problem with returning value in Excel formula

    It worked out fine when I formated the column as text.

+ 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. Function returning worksheet formula problem.
    By frikost in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-30-2014, 09:55 AM
  2. Replies: 6
    Last Post: 09-20-2013, 02:40 PM
  3. [SOLVED] Problem with formula returning #n/a when value is not found
    By john dalton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2013, 05:49 AM
  4. Replies: 3
    Last Post: 08-16-2010, 05:50 AM
  5. Replies: 2
    Last Post: 02-22-2005, 09:06 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