+ Reply to Thread
Results 1 to 4 of 4

Help simplifying a formula

  1. #1
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Help simplifying a formula

    I have the following formula in column "M" of the attached file
    Please Login or Register  to view this content.
    Time Card Summary - Version2.3.xlsx

    The each nested if statement is on a separate line. The formula is entered as an array and is so long because of the number of possible criteria combinations, but I would like to simplify it if possible. Essentially here is the logic:
    You can place an "s" in one of three columns
    I would like the formula to do x if an "s" is placed in the C column, y if an "s" is found in column F, and z if an "s" is found in column I, and to add either x, y, or z if an s is found in either

    There has to be a simpler way to do this.

    Thanks in advance

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help simplifying a formula

    The simplest way to accomplish this I can think of is this, drop this in V4 and copy down:

    =CHOOSE(IFERROR(MATCH("s", $C4:$I4, 0),2), "x","","","y","","","z")

    That will give the code response based on the FIRST "s" it finds on that row in those three columns. I don't understand the rest of your question.
    Last edited by JBeaucaire; 09-24-2013 at 02:42 PM. Reason: Corrected formula
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: Help simplifying a formula

    JBeaucaire,

    Thanks for your response. I know the formula is complicated, and perhaps its a case of I made my bed and now I have to sleep in it. Thanks for you suggestion on the formula I will play with it and see what happens.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help simplifying a formula

    Here's a correction to that formula...

    =CHOOSE(IFERROR(MATCH("s", $C4:$I4, 0),2), "x","","","y","","","z")


    If you can explain the rest of that as succinctly as you did the first part, I can try to help more.

+ 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. Simplifying a big formula
    By aureliano in forum Excel General
    Replies: 1
    Last Post: 06-22-2012, 08:14 PM
  2. Simplifying a formula
    By Darren88 in forum Excel General
    Replies: 9
    Last Post: 02-26-2012, 04:27 AM
  3. Simplifying a formula
    By neilpateluk in forum Excel General
    Replies: 3
    Last Post: 01-14-2009, 09:25 AM
  4. Simplifying my formula
    By lordfa9 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-09-2007, 05:33 AM
  5. Simplifying formula
    By m.cain in forum Excel General
    Replies: 1
    Last Post: 03-24-2006, 07:40 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