+ Reply to Thread
Results 1 to 11 of 11

Help simplifying an if and formula

  1. #1
    Registered User
    Join Date
    06-07-2015
    Location
    va
    MS-Off Ver
    office 365
    Posts
    19

    Help simplifying an if and formula

    Hello all,

    I'm new here and kinda new to excel. I'm working on a spreadsheet and I've put together a formula to, basically, look at a number of cells in a column and if all the cells values are above 8, a certain dollar value will show. The problem is that the formula is very long and I didn't know if there was a way to shorten or simplify the formula. Here it is

    =IF(AND(T3>9,T4>9,T5>9,T6>9,T7>9,T8>9,T9>9,T10>9,T11>9,T12>9),"$1,200.00",IF(AND(T3>10,T4>10,T5>10,T6>10,T7>10,T8>10,T9>10,T10>10,T11>10,T12>10),"$1,500.00",IF(AND(T3>11,T4>11,T5>11,T6>11,T7>11,T8>11,T9>11,T10>11,T11>11,T12>11),"$1,800.00","$1,000.00")))

    You can see that In the first part, I just want T3 through T12 to be checked for a value greater than 9. Apparently, I can't just put T3:T12. You all have any ideas?

    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Help simplifying an if and formula

    The logic is wrong.

    Can you upload a sample sheet.

  3. #3
    Registered User
    Join Date
    06-07-2015
    Location
    va
    MS-Off Ver
    office 365
    Posts
    19

    Re: Help simplifying an if and formula

    Here you go.
    Attached Files Attached Files

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Help simplifying an if and formula

    Will this work for you.....

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Help simplifying an if and formula

    Maybe,
    =LOOKUP(MIN($T$3:$T$12),{0,9,10,11},{1000,1200,1500,1800})

    by looking at the minimum value in the range and then use the lookup function. change the intervals (marked in orange above) as you see fit, in this example it will count as e.g. >=9 which you can change to 9.0001 to be >9 or so. Notice that the min formula will exclude any empty cells, so it in this case it won't matter if the range is defined as T3:T12 or T3:T10.

    Hope this helps.
    Last edited by berlan; 06-07-2015 at 09:22 AM.

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Help simplifying an if and formula

    Hi,

    Try the following G16:

    Please Login or Register  to view this content.
    Last edited by cbatrody; 06-07-2015 at 11:00 AM.

  7. #7
    Registered User
    Join Date
    06-07-2015
    Location
    va
    MS-Off Ver
    office 365
    Posts
    19

    Re: Help simplifying an if and formula

    Wow. You all are awesome. I like berlans, as this makes it very easy if I add additional employees but it's nice to see that there are so many different options that are sooooooo much easier than what I constructed.

    Thanks SO much

  8. #8
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Help simplifying an if and formula

    Instead of returning e.g. "$1,000.00" as a string, as in the first formula provided, consider returning it as a value and use numberformatting instead.

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Help simplifying an if and formula

    Of course berlan's approach is more robust.
    Glad we could help.

    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

  10. #10
    Registered User
    Join Date
    06-07-2015
    Location
    va
    MS-Off Ver
    office 365
    Posts
    19

    Re: Help simplifying an if and formula

    Why would you use the $ in the cell descriptions for berlans formula? I still don't quite understand the meaning of those when they're used

  11. #11
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Help simplifying an if and formula

    $ sign is used to intend absolute reference. When you have $ signs like in the example below, if you drag the formula to the right or down the reference will not change.

    $T$3:$T$12

    see the following URL for more details,

    https://support.office.com/en-za/art...c-28b4151d7d21

+ 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] simplifying formula
    By johnandrews in forum Excel General
    Replies: 6
    Last Post: 11-19-2014, 12:29 PM
  2. Simplifying a formula
    By AColl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-26-2014, 08:38 AM
  3. Simplifying a formula
    By neilpateluk in forum Excel General
    Replies: 3
    Last Post: 01-14-2009, 09:25 AM
  4. Simplifying a formula
    By MartinW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2006, 06:55 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