+ Reply to Thread
Results 1 to 11 of 11

IF OR AND help ... I'm lost and maybe have the wrong formula all together.

  1. #1
    Registered User
    Join Date
    02-27-2024
    Location
    Monroe, LA
    MS-Off Ver
    365
    Posts
    6

    IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    I need to have points given based off of an "Either Or" scenario. If 15 Items sold or $$15,000, you will receive 10 points; If 20 Items sold or $20,000, you will receive 15 points and If 25 Items sold or $25,000, you will receive 20 points. Here is the formula that I found might work, but it's calculating a result of 10 points regardless if the result is over $25,000.

    (Mind you this is only the beginning of the formula)

    =IF(OR(D6>=15,D6<=20,AND(I5>=15000,I5<20000))=TRUE,10,"False")

    D6 is this formula: =SUMIFS(G8:G57,C8:C57,"Allstate",H8:H57,"Line 10 Auto")+SUMIFS(J8:J57,C8:C57,"Allstate",K8:K57,"Homeowners")+SUMIFS(J8:J57,C8:C57,"Allstate",K8:K57,"Condo")

    I5 is this formula:=SUM(R9)

  2. #2
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2310)
    Posts
    366

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    this looks like it works though I'm not completely clear on your criteria but...
    =IF(OR(AND(D6>=15,D6<20),AND(I5>=15000,I5<=20000)),10,IF(OR(AND(D6>=20,D6<25),AND(I5>20000,I5<=25000)),20,IF(AND(D6>=25,I5>25000),25,"")))

    because I don't know what to do if for example you have 17 items sold and 22000 in sold amount, is that still 10 because this formula will give you 10 for that situation due to the "OR" part.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    02-27-2024
    Location
    Monroe, LA
    MS-Off Ver
    365
    Posts
    6

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    Thank you, Sam!

    It's a whichever comes first scenario. So basically, between 15 and 19 items sold and between $15,000 - $19,999 you get 10 points; between 20 and 24 items sold and/or between $20,000 - $24,999 you get 15 points;
    25 items or $25,000 and more you get 20 points.


    So using your example of 17 items sold, but $22,000 in premium should garner you 15 points.


    Thanks again for your help!
    Last edited by HPGiroux; 02-28-2024 at 10:47 AM.

  5. #5
    Registered User
    Join Date
    02-27-2024
    Location
    Monroe, LA
    MS-Off Ver
    365
    Posts
    6

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    Sample formula search.xlsx

    Here is an example

  6. #6
    Registered User
    Join Date
    02-27-2024
    Location
    Monroe, LA
    MS-Off Ver
    365
    Posts
    6

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    Thank you and noted. I have now attached an example spreadsheet above.
    Last edited by HPGiroux; 02-28-2024 at 11:22 AM.

  7. #7
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    How about this,
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-27-2024
    Location
    Monroe, LA
    MS-Off Ver
    365
    Posts
    6

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    It seems better to me! Thank you! However, because we have over 25k in premium in the example, I need it to give 20 points. I'm really not sure how to go about that kind of calculation.

  9. #9
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    Amended forumla,

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-27-2024
    Location
    Monroe, LA
    MS-Off Ver
    365
    Posts
    6

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    That works!! Thank you so very much!!

  11. #11
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: IF OR AND help ... I'm lost and maybe have the wrong formula all together.

    You are welcome.
    --------------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this 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)

Similar Threads

  1. [SOLVED] Wrong formula or wrong function?
    By cpope in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2017, 10:27 AM
  2. Lost spaces and Zeros lost when replacing text
    By renshawk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2013, 04:50 AM
  3. I've lost my formula Bar
    By lynv in forum Excel General
    Replies: 1
    Last Post: 05-21-2010, 09:35 PM
  4. Help me im lost with this formula
    By wiL in forum Excel General
    Replies: 2
    Last Post: 11-05-2009, 06:40 PM
  5. formula lost
    By Zrx in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2006, 09:17 PM
  6. [SOLVED] How do I keep a running total of pounds lost and percentage lost
    By angel5959 in forum Excel General
    Replies: 4
    Last Post: 01-26-2006, 05:20 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