+ Reply to Thread
Results 1 to 11 of 11

Problem: Hide or show cells based on values in another cell

  1. #1
    Registered User
    Join Date
    03-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    9

    Problem: Hide or show cells based on values in another cell

    Hello

    What i have functioning is as follows:


    User selects "Problem X" from a list in cell Ax, receives a solution in cell Cx (Bx is used for dropdownarrow), confirms the solution helped with Yes or No in cell Dx. This results in either the value "1" or "2" showing up in cell Ex.

    What I want to make functionable is as follows:

    Cell Fx shows an alternative solution based on wich problem is chosen.(this is already the case). But i want to hide this solution when Ex is either blank or '1' and shows when Ex=2.

    Can someone give me tips on how to do this or if there is a different way to achieve this? The workbook is attached with this message.

    Kind regards.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Problem: Hide or show cells based on values in another cell

    Try

    =IF( E2<>2,"",VLOOKUP(A2,Blad2!A12:B20,COLUMN(Blad2!B12:B20)-COLUMN(Blad2!A12:B20)+1,0))

  3. #3
    Registered User
    Join Date
    03-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    9

    Re: Problem: Hide or show cells based on values in another cell

    Thank you for your quick reply!

    I tried using the formula you gave me but it gave me an error. It hints to this section of the formula(it was selected after the error)
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    9

    Re: Problem: Hide or show cells based on values in another cell

    Sorry, I replied in a wrong way. So this is for the notification.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Problem: Hide or show cells based on values in another cell

    Try

    =IF( E2<>2,"",Iferror(VLOOKUP(A2,Blad2!A12:B20,COLUMN(Blad2!B12:B20)-COLUMN(Blad2!A12:B20)+1,0),""))
    Last edited by JohnTopley; 03-14-2016 at 04:15 PM.

  6. #6
    Registered User
    Join Date
    03-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    9

    Re: Problem: Hide or show cells based on values in another cell

    Hi John,

    Thank you for your time on this. I've tried your formula but it keeps giving me the following pop up
    error1.png

    I realize it's Dutch but the English version probably looks about the same. It's a generic error message directing me to the help function, function wizard or if i'm trying to type text in the cell instead of a formula, i shouldnt use (-) or (=)

    Does this help in any understanding in what went wrong?

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Problem: Hide or show cells based on values in another cell

    Post the file with error condition: I can't view PNG images nor can anyone work with them.

  8. #8
    Registered User
    Join Date
    03-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    9

    Re: Problem: Hide or show cells based on values in another cell

    I would if I could, but excel doesn't allow me to save the file when there is an error condition. To recreate the condition, you can paste the formula you gave me in to the file in de top post in cell F2

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Problem: Hide or show cells based on values in another cell

    Formula works for me: is it a matter of simply changing the commas to semi-colons in the formula?

    =IF( E2<>2;"";IFERROR(VLOOKUP(A2;Blad2!A12:B20;COLUMN(Blad2!B12:B20)-COLUMN(Blad2!A12:B20)+1,0);""))

  10. #10
    Registered User
    Join Date
    03-14-2016
    Location
    Amsterdam
    MS-Off Ver
    2010
    Posts
    9

    Re: Problem: Hide or show cells based on values in another cell

    It worked! I have the Dutch version of outlook and I was under the assumption(!) that it rocognized the English terms IF/AND etc. But after switching them around it worked! Thanks a million for helping me!

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Problem: Hide or show cells based on values in another cell

    Glad it is resolved.

    Could you please mark thread as solved ("Thread Tools" at top of first post).

    Thank you.

+ 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. Automatically hide cells based on two criteria (cell values)
    By mjoc9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2015, 12:56 PM
  2. show hide shape to a cell problem with code
    By pavlos_x in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-26-2015, 02:43 PM
  3. Show/Hide sheets based on values of cells in a range
    By Happytobe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2014, 04:52 PM
  4. Hide cells based on Cell values
    By HandyAndy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-04-2013, 12:14 PM
  5. VBA to Show/Hide multiple shapes based on cell values
    By Mike_Taylor16 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2013, 03:29 PM
  6. Show/Hide rows based on combo box selection and value in two cells
    By merrener in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2013, 05:43 PM
  7. Need help to show/hide rows based on values from a cell
    By concurmgr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-19-2012, 02:56 PM

Tags for this Thread

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