+ Reply to Thread
Results 1 to 6 of 6

Using check box to display cell content but it only displays #value!

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Using check box to display cell content but it only displays #value!

    I am trying to use check box to display cell text in Q23 or Q24 (depending on what is checked) in cell B23 but it only displays #VALUE!

    formula in cell B23
    =IF(P23=TRUE,Q23," ")+IF(P24=TRUE,Q24," ")


    Thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,062

    Re: Using check box to display cell content but it only displays #value!

    You cant add spaces only numbers
    If either of those conditions ends in a space youll get a #value! error

    Change it to
    =IF(P23=TRUE,Q23,0)+IF(P24=TRUE,Q24,0)

    or

    =(P23=TRUE)*Q23+(P24=TRUE)*Q24

    or even

    =P23*Q23+P24*Q24
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Using check box to display cell content but it only displays #value!

    I tried all three, still getting #VALUE! OR 0 on the first one.

  4. #4
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: Using check box to display cell content but it only displays #value!

    Maybe:
    =IF(P23=TRUE,Q23,IF(P24=TRUE,Q24,""))

  5. #5
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: Using check box to display cell content but it only displays #value!

    Or maybe:
    =IF(P23=TRUE,Q23,"")&IF(P24=TRUE," "&Q24,"")

  6. #6
    Registered User
    Join Date
    03-04-2013
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Using check box to display cell content but it only displays #value!

    That worked estige

    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. [SOLVED] VB Code to check the content in cell
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2014, 11:06 AM
  2. have a cell display what another cell displays, not the numerical value
    By kranic3 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-17-2014, 08:56 AM
  3. [SOLVED] Display content of first cell that has any value
    By shakii in forum Excel General
    Replies: 2
    Last Post: 04-09-2014, 08:23 PM
  4. Replies: 3
    Last Post: 06-19-2012, 04:55 AM
  5. How to get button to check cell content
    By FoxIII in forum Excel General
    Replies: 1
    Last Post: 02-17-2009, 08:25 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