+ Reply to Thread
Results 1 to 35 of 35

IFNA function and text into value

  1. #1
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    IFNA function and text into value

    Hi all,

    Really hope somebody can help.
    (I am using excel 2016)

    I am using a big excel file and I use the below formula in excel.

    =IFNA(VLOOKUP($A:$A,'Loonstaat WN 2017'!$A$12368:$Q$12448,4,0),0)

    However the VLOOKUP RETURNS : 15.972,22 and this is seen as text.
    I was hoping that adding *1 after the formula would make the field a value.

    But unfortunately that does not work.
    Does anybody know how to make the result of the above mentioned formula into a Value.
    And by that I mean it needs to be in the formula.


    Thanks!

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: IFNA function and text into value

    =IFNA(--SUBSTITUTE(VLOOKUP($A:$A,'Loonstaat WN 2017'!$A$12368:$Q$12448,4,),".",""),)

  3. #3
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: IFNA function and text into value

    Another option:

    =IFNA(VALUE(VLOOKUP($A:$A,'Loonstaat WN 2017'!$A$12368:$Q$12448,4,0)),0)
    HtH,

    Joris

    --------------------------------------------------------------------------------
    If you found my answer helpful, please hit the Like or Thank button.

    Please follow the forum Rules and Guidelines and use Code tags around your VBA code.

    Remember: test VBA code always on a copy of your file because usually you can't use undo

  4. #4
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    Super thanks!

  5. #5
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    Hi tim,

    Thanks for your reply.
    Somehow the formula worked on my home computer but now when I am working at work
    the formula gives a # VALUE! error again.

    I have used your formula:
    =IFNA(--SUBSTITUTE(VLOOKUP($A:$A,'Loonstaat WN 2017'!$A$12368:$Q$12448,4,),".",""),)

    I am using excel 2016 at work
    Can it be that some regional settings on my computer need to be different?
    My decimal symbol is a "."
    My digit grouping symbol is ,

    It is so strange hope you have the golden tip!

  6. #6
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    Hi Tim,

    So the text I have is:

    15.972,22

    My value needs to be:

    15972.22

    This for my decimal symbol is a "." and my thousands symbol is a ","

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    Maybe you have differences between System decimal point/Digit grouping symbol and Excel decimal separator/thousands separator (at home/at work)

  8. #8
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    I tried this:

    =SUBSTITUTE(IFNA(SUBSTITUTE(VLOOKUP($A:$A,'Loonstaat WN 2017'!$A$12368:$Q$12448,4,),".",""),),",",".")

    But then my SUM formula is not adding now
    15972.22+15972.22

  9. #9
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    I tried this:

    =SUBSTITUTE(IFNA(SUBSTITUTE(VLOOKUP($A:$A,'Loonstaat WN 2017'!$A$12368:$Q$12448,4,),".",""),),",",".")

    But then my SUM formula is not adding now
    15972.22+15972.22

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    What will happen if you put into cell =15972.22 ?
    What will happen if you put into cell =15972,22 ?
    and which one is working at home? (I assume you are at work now)

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

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

  12. #12
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: IFNA function and text into value

    Hi,

    If the regional settings between home and work are different, there's a possibility that the result of the VLOOKUP at home evaluates as TEXT while at work it evaluates as a number.
    If that's true, using the substitute at work is removing the dot and replacing it with a comma and by doing that it does not create a number-value but a text-value.

    have you looked at my suggestion to use the VALUE function instead of SUBSTITUTE.

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    Last edited by sandy666; 02-09-2017 at 06:03 AM.

  14. #14
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    Hi Joris

    With regards to:
    have you looked at my suggestion to use the VALUE function instead of SUBSTITUTE.

    I tried that one as well but somehow it does not work it gives me a #VALUE! error there as well.
    That is why I was trying the substitute function

  15. #15
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    Hi Sandy my system settings in excel have been set up
    so excel is using my system settings

    thousands is ","
    and decimal is "."
    is shown in my regional settings of computer
    and also under advanced options in excel

    the setting in excel says use system settings and they are the same

  16. #16
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    If I use that one I get a #VALUE! error

    strange right.
    i really do understand what you are all saying but so strange

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    is it possible to add example xlsx file with this error ?

  18. #18
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    yes but I do noy see the option where to add the file
    let me have a look I will add a file

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    Attach a sample workbook. (Not a picture!)

    [that is enough I think ]

    20 rows of data is enough (probably)

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If link is not from FORUM server you have to wait until someone will want to watch the file from an external server.
    Last edited by sandy666; 02-09-2017 at 06:16 AM.

  20. #20
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    I have added the file

  21. #21
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    No, you don't

  22. #22
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    Go Advanced
    Manage Attachments
    Browse
    Select file
    OK
    Upload
    You should see your file under: Upload Files from a Website
    Close the window (you don't see your attachment yet)
    Type something in the text body
    Submit Reply
    Last edited by sandy666; 02-09-2017 at 06:36 AM.

  23. #23
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Cool Re: IFNA function and text into value

    Here is the file I hope
    Attached Files Attached Files

  24. #24
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

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

  25. #25
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    Of course if you don't want #N/A "error" you can wrap formula with IFNA()

  26. #26
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: IFNA function and text into value

    can you share a desensitized sample of your file with formula included?

  27. #27
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: IFNA function and text into value

    Perhaps you can share a desensitized version of your file?

  28. #28
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    here it is Joris
    Attached Files Attached Files

  29. #29
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    Hi Sandy,

    I did this now:

    =IFNA(--SUBSTITUTE(SUBSTITUTE(VLOOKUP($A:$A,'Loonstaat WN 2017'!$A$12368:$Q$12448,4,),".",""),",","."),0)

    But then if there is an "empty" field I get a #VALUE error?
    So it is working but for the fields where there is no text or value I get a #VALUE error.

    How can I solve that?
    Thanks! Highly appreciated!

  30. #30
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    Hi Sandy,

    I did this now:

    =IFNA(--SUBSTITUTE(SUBSTITUTE(VLOOKUP($A:$A,'Loonstaat WN 2017'!$A$12368:$Q$12448,4,),".",""),",","."),0)

    But then if there is an "empty" field I get a #VALUE error?
    So it is working but for the fields where there is no text or value I get a #VALUE error.

    How can I solve that?
    Thanks! Highly appreciated!

  31. #31
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    here is attachment
    check yellow and blue cellls

  32. #32
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    Sorry but I'm blind now. I got Database error from the forum, next Sucuri problem and now I can't see 3rd page of this thread
    I tried to attach file but I don't know is it attached.
    So you need to check everything by yourself and for the future, do not use any formatting or merged cells until you are sure that everything works.
    If you want hide all errors use IFERROR() function instead of IFNA().
    Hope it will help

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by sandy666; 02-09-2017 at 08:49 AM.

  33. #33
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    That is the one!

    Super
    Thanks
    the IFERROR solves it!

    Highly appreciated!!!!

  34. #34
    Registered User
    Join Date
    08-10-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: IFNA function and text into value

    Super thanks
    Is solved now (closed)

  35. #35
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IFNA function and text into value

    Glad to help

    Better is:

    If the problem is solved it's always a good practice to show respect to the person(s) who have helped you is a click on the Add Reputation first and then mark the thread as SOLVED (Thread Tools), Thanks

+ 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. How to mix an IFNA with a IFVLOOKUP
    By Weaselwithagun in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-14-2016, 07:38 AM
  2. [SOLVED] Difficulty figuring out were to put IFNA
    By TheBakerBoy in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-25-2016, 03:00 AM
  3. Applying IFNA to entire workbook
    By Bral1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-18-2014, 08:49 AM
  4. Replies: 1
    Last Post: 04-24-2014, 12:25 AM
  5. [SOLVED] function IF to return text based if text contains exact text
    By in nomine noctis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 06:25 AM
  6. Replies: 4
    Last Post: 07-25-2013, 05:28 AM
  7. Replies: 3
    Last Post: 10-27-2010, 03:11 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