+ Reply to Thread
Results 1 to 6 of 6

Reduce size of formula with brackets included (Note:brackets used without CTL+Shift+Enter)

Hybrid View

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    10

    Reduce size of formula with brackets included (Note:brackets used without CTL+Shift+Enter)

    I have the following formula which works fine but I would like to reduce the size of the formula where the bracket start and end because I need to add else data. I have tried to substitute the data where the brackets moving it to another cell and link with this cell but formula does not work, also I tried to moving to other cell placing define name option but neither the formula works. Can you tell me if there is any alternative to reduce the size of this formula specifically where the brackets are?

    =IF(F23<>"",(IF(OR($F$3={1030,1060,1080,1085,1270,1310,1325,1370,1365,1380,1385,1100,1160,1190,1050,1070,1410,1420,1425,1430,1435,1440,1445,1455,1465,1470,1475,7005,7205,2750}),(IF($F$10<>"USD",F23/$G$10,F23)),(IF($F$10="USD",F23*$G$10,F23)))),"")

    Thanks
    lucianir

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Reduce size of formula with brackets included (Note:brackets used without CTL+Shift+En

    If there is a list of those values (you're checking F3 against) somewhere in your book you can replace that OR() part with COUNTIF(list,F3)
    And you have unnecessary brackets preceding all but the first IF()
    Last edited by Cutter; 04-18-2012 at 12:56 PM.

  3. #3
    Registered User
    Join Date
    04-03-2012
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Reduce size of formula with brackets included (Note:brackets used without CTL+Shift+En

    Hi Cutter, thanks you so much for your response, but I will appreciate if you send me at all statement of the formula because I follow your suggestions but it worked partially, e.g when D10=USD and match with some item listed in my bracket formula in F3 sustituted for your formula countif, the outcome expected is wrong, maybe I can have understood your formula wrong, in this sense I ask you send me at all statemennt of the formula in order to test it. Thanks in advance.

    Lucianir

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Reduce size of formula with brackets included (Note:brackets used without CTL+Shift+En

    OK, I'll give it a shot (not as easy as it would be to have a sample file to work with):

    =IF(F23<>"",IF(COUNTIF(list,$F$3),(IF($F$10<>"USD",F23/$G$10,F23)),(IF($F$10="USD",F23*$G$10,F23))),"")

    On closer look you do need preceding brackets 2 of the 4 IF()'s. I think that should do it. Replace the word list with the range that contains the list of values being checked for F3

  5. #5
    Registered User
    Join Date
    04-03-2012
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Reduce size of formula with brackets included (Note:brackets used without CTL+Shift+En

    Hi Cutter, I did test your formula and now is working fine, I have appreciated so much your help on this and I already posted a star for your reputation in this forum.
    Lucianir

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Reduce size of formula with brackets included (Note:brackets used without CTL+Shift+En

    You're welcome. Thanks for the star tap but don't forget to mark your thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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