+ Reply to Thread
Results 1 to 12 of 12

#VALUE formula issue

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    52

    #VALUE formula issue

    Hi Friends

    This formula =MAX(IF(VALUE(M261)=VALUE(M$40:M260),R$40:R260))+1 is working perfect in one excel but giving #VALUE! error in other excel.

    Column M have text and column R has numeric value, I am new to this so not sure how to handle.

    Thanks!!
    Last edited by v2k2apj; 05-29-2013 at 06:01 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: #VALUE formula issue

    Check your data - perhaps the data in M40:M261 is not of a form that you can convert it to a value.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-20-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: #VALUE formula issue

    Hi Pete

    Thanks for your response!!

    Wow..you are right !!

    The formula was working perfect with values in M40:M261 -> 10001 (example)

    The formula was not working with values in M40:M261 -> CC_70289 (example)

    so I tried without VALUE function in both cases but it is giving !VALUE# error..

    What should I try here ?

    Thanks!!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: #VALUE formula issue

    If your data is all like that, i.e. with an underscore separating text and numbers, then you could do this:

    =MAX(IF(VALUE(RIGHT(M261,LEN(M261)-SEARCH("_",M261)))=VALUE(RIGHT(M$40:M260,LEN(M$40:M260)-SEARCH("_",M$40:M260))),R$40:R260))+1

    although you might not need it for the first term involving M261 (depending on what you put in there).

    Note that this is an array formula, so you must commit it using the key combination Ctrl-Shift-Enter (CSE) instead of the usual <Enter>.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    05-20-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: #VALUE formula issue

    I tried this formula and it gives same issue #VALUE!

    But when I selected single cell M$40:M40 instead of range M$40:M260 it worked perfect.. how to avoid this ?

    Also this formula does not cover the cell with value -> CC_SA_680550

    Could you please check is there any other function in excel available to achieve this.. ?

    Appreciate your time and effort!!

  6. #6
    Registered User
    Join Date
    05-20-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: #VALUE formula issue

    I think Pete is not available

    Can some one please have a look on my concern..

    Thank you!!

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: #VALUE formula issue

    I do eat now and then !!

    I think you need to post an example workbook then we can see what variations you have in that range. The FAQ describes how to add a file to one of your posts.

    Pete

  8. #8
    Registered User
    Join Date
    05-20-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: #VALUE formula issue

    Hi Pete

    Thanks for coming back

    I have attached excel for your reference..
    Attached Files Attached Files

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: #VALUE formula issue

    Put this array* formula in K23:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then copy down.

    *An array formula needs to be confirmed using the key combination of Ctrl-Shift-Enter, as previously advised.

    Hope this helps.

    Pete

  10. #10
    Registered User
    Join Date
    05-20-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: #VALUE formula issue

    Hi Pete

    You are great !! Thanks for your time and effort !!

    I tried that key combination might be I missed something else..

    Anyways I really appreciate and thanks to excelforum too

    Cheers!!!

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: #VALUE formula issue

    Well, you should get 4 in that cell and blanks in the other cells, as the attachment shows.

    Hope this helps.

    Pete
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    05-20-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: #VALUE formula issue

    Sorry it was my bad english

    Actually the issue is solved as per your previous post..

    You are awesome !!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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