+ Reply to Thread
Results 1 to 17 of 17

Formula simplification needed.

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Formula simplification needed.

    Hello Friends

    From the inputs of light green cells (C11 by validation, B13 as shown below) the formula in light yellow cell C13 dragging the checklist entries.

    Now in Cell C13 have huge formula, is there any way to simpify this formula.

    thanks in advance
    Attached Files Attached Files
    Sekar

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula simplification needed.

    Try this in C13.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by FlameRetired; 08-27-2018 at 03:03 AM.
    Dave

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula simplification needed.

    Another way ... array entered. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula simplification needed.

    or the below will work

    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Formula simplification needed.

    Hello

    Thanks for all, No formulas are suit this requirement.

    FlameRetired formulas partially working, Samba formula not working.

    Thanks again
    Attached Files Attached Files
    Last edited by Sekars; 08-27-2018 at 06:49 AM.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula simplification needed.

    Quote Originally Posted by Sekars View Post
    Hello

    Thanks for all, No formulas are suit this requirement.

    FlameRetired formulas partially working, Samba formula not working.

    Thanks again
    will you please attach a sample file where it was not worked

  7. #7
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Formula simplification needed.

    Quote Originally Posted by nflsales View Post
    will you please attach a sample file where it was not worked
    Please refer the attached excel file in Post #5.

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula simplification needed.

    cell b13 is in text format so that it was not worked for zero
    try below one

    Please Login or Register  to view this content.

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula simplification needed.

    Without an clear explaination of purpose, I'm going with

    =IF(B13="0",C7,MID(C7,FIND(B13,C7),IFERROR(FIND(B13+1,C7)-FIND(B13,C7)-1,LEN(C7))))

    Which gives identical results to the existing megaformula in C13

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula simplification needed.

    Quote Originally Posted by jason.b75 View Post
    Without an clear explaination of purpose, I'm going with

    =IF(B13="0",C7,MID(C7,FIND(B13,C7),IFERROR(FIND(B13+1,C7)-FIND(B13,C7)-1,LEN(C7))))

    Which gives identical results to the existing megaformula in C13
    1) if there is more then 9 numbers then how your formula get the correct results
    2) if you replaced C7 with vlookup formula, your formula also be looks like mega formula

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula simplification needed.

    I repeat the first line of my previous post for the benifit of those who appear not capable of reading it the first time.

    Without an clear explaination of purpose

  12. #12
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula simplification needed.

    Quote Originally Posted by jason.b75 View Post
    I repeat the first line of my previous post for the benifit of those who appear not capable of reading it the first time.

    Without an clear explaination of purpose
    Then what is the need of mentioning megaformula
    Which gives identical results to the existing megaformula in C13

  13. #13
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula simplification needed.

    Compare results of simple formula to mega formula, tell me where it gives a different result.

    I didn't say it was the perfect formula, I said it gives the same results.

    Maybe if you learn to read properly.

  14. #14
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Formula simplification needed.

    Please input in the B13 cell as in the format of `-X', `X-' and `X-Y' where X and Y is integers (whole numbers without decimal places). Example : -5, 7- and 4-8. And after kindly refer the result for every inputs.
    Last edited by Sekars; 08-27-2018 at 09:19 AM.

  15. #15
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula simplification needed.

    See if this works for you, I used a copule of helpers in the hidden rows.

    In E2 =IFERROR(CHOOSE(MATCH(B13*1,{-8,0,1,9}),ABS(B13-1),9,B13+1,MONTH(B13*1)+1),9)
    In E3 =IFERROR(CHOOSE(MATCH(B13*1,{-8,0,1,9}),1,1,B13*1,DAY(B13*1)),--LEFT(B13))
    In C13 =TRIM(MID(SUBSTITUTE(SUBSTITUTE(CHAR(10)&C7&CHAR(10),CHAR(10),REPT(" ",LEN(C7)),MAX(E2:E3)),CHAR(10),REPT(" ",LEN(C7)),MIN(E2:E3)),LEN(C7),LEN(C7)))

    If you're looking to expand the lists beyond 1-8 then I would suggest looking at a UDF.

  16. #16
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Formula simplification needed.

    UDF leads to change the .xlsx to .xlsm that i don't want.

    Thanks for all of your effort to simply this formula. I know it is very difficult and a challenge.

    Again thanks to all.

  17. #17
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula simplification needed.

    You're welcome. Thanks for the feedback.

+ 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] Formula Simplification If/Or/And/Then/Else
    By snuffnchess in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2016, 08:27 PM
  2. [SOLVED] modification & simplification of existing formula
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 03-12-2014, 08:17 AM
  3. Sumif formula Simplification
    By Tristanfrontline in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-26-2014, 12:56 AM
  4. [SOLVED] Formula Simplification
    By brharrii in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2013, 10:46 AM
  5. [SOLVED] Advance lookup formular (simplification needed)
    By pabloponza in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-22-2013, 10:56 PM
  6. Formula Simplification
    By nanocrazy in forum Excel General
    Replies: 2
    Last Post: 04-16-2010, 03:14 AM
  7. Simplification of SUMPRODUCT formula
    By Spellbound in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2009, 10:08 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