+ Reply to Thread
Results 1 to 12 of 12

How to simplify if then else

  1. #1
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    How to simplify if then else

    Hi,

    I would like to ask if there is away to simplify or shorten this code especially those repetitive if then else statement?

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: How to simplify if then else

    This may help you:

    https://www.techonthenet.com/excel/formulas/case.php

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: How to simplify if then else

    May be (Untested)
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to simplify if then else

    How about
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: How to simplify if then else

    Thank you guys I tried both codes but its kind a weird I only get the "Pass" status if all the said checkboxes was ticked or checked by the user. That should not be the case.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to simplify if then else

    Can you please explain what you are trying to do?
    The code you posted is only effectively checking checkbox27.

  7. #7
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: How to simplify if then else

    If the user check/tick the CheckBox20 = value in rowcounter 7 should be "Pass" Else "fail" same goes with the remaining checkboxes CheckBox21, CheckBox26, CheckBox27.

    Thank you!

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to simplify if then else

    Except that cell will only reflect the value of checkbox27.
    If checkbox27 is false the cell will say Fail, regardless of the other checkboxes.

  9. #9
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: How to simplify if then else

    Ohh I see that's why I cannot get the exact value. is there any other way?

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to simplify if then else

    Maybe have separate cells for each checkbox?
    Or concatenate the results?
    Without knowing what you are trying to do, it's difficult to answer.

  11. #11
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: How to simplify if then else

    Now I realize this is not possible because of those empty checkbox. maybe I'll try some otherway. thank you guys for all the help

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to simplify if then else

    You're welcome

+ 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] Please Help to Simplify SUM + (IF),(IF),(IF),(IF)
    By Joeun in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-09-2018, 05:10 AM
  2. [SOLVED] Simplify the formula
    By eing in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2013, 12:44 AM
  3. Too Many If's - Help to simplify
    By batman1056 in forum Excel General
    Replies: 8
    Last Post: 12-07-2010, 12:19 PM
  4. possible to simplify?
    By xLiquidFlames in forum Excel General
    Replies: 1
    Last Post: 02-23-2009, 03:29 AM
  5. Simplify and add to IF
    By Mark K in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-24-2006, 06:13 AM
  6. Simplify
    By ccl28 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2006, 05:50 AM
  7. [SOLVED] A way to simplify this please
    By Larry Empey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2006, 08:10 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