+ Reply to Thread
Results 1 to 10 of 10

Formula / Calculation with multiple conditions

  1. #1
    Forum Contributor
    Join Date
    10-22-2020
    Location
    Bharat
    MS-Off Ver
    MS office 21
    Posts
    141

    Formula / Calculation with multiple conditions

    Hi all,

    In my attached excel file are 1 table in Sheet 1:
    doner Data with the amount,
    Creteria amount
    01 to 1000 = 1 to 1000
    1001 to 10000 = 1001 to 1001
    10001 to 50000 = 10001 to 50000
    50001 to 100000 = 50001 to 100000
    100001 to 500000 =100001 to 500000
    500001 to above =
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,427

    Re: Formula / Calculation with multiple conditions

    Not sure it's completely clear, but possibly in K4 copied across and down:

    =IF(COLUMNS($K1:K1)=LOOKUP($G4,{1,1001,10001,50001,100001},{1,2,3,4,5}),$G4,0)

    or:

    =IF(I4="","",IF(COLUMNS($K1:K1)=LOOKUP($G4,{1,1001,10001,50001,100001},{1,2,3,4,5}),$G4,0))
    Attached Files Attached Files
    Last edited by AliGW; 01-13-2022 at 05:30 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    10-22-2020
    Location
    Bharat
    MS-Off Ver
    MS office 21
    Posts
    141

    Re: Formula / Calculation with multiple conditions

    Thank you very much, mam

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,427

    Re: Formula / Calculation with multiple conditions

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  5. #5
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Formula / Calculation with multiple conditions

    Is this meant to report the data in column G into the buckets on the right hand side?

    if so - cell K4 try"=IF(AND(G4>=1, G4<=1000),G4,0)". cell L4 try "=IF(AND(G4>=1001, G4<=10000),G4,0)" ... do the same logic for the other columns, then copy down.

    If not, please clarify what outcome you are looking for and with what data?

    *** Edit *** - Oops, posted too slow, AliGW beat me to it
    <<< If you have valued anyone's contributions in this thread, please click * to thank them for their efforts

  6. #6
    Forum Contributor
    Join Date
    10-22-2020
    Location
    Bharat
    MS-Off Ver
    MS office 21
    Posts
    141

    Re: Formula / Calculation with multiple conditions

    Thanks, sir

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,624

    Re: Formula / Calculation with multiple conditions

    Looks fine to me. That's where I was going... just one enhancement:

    =IF($J4="","",IF(COLUMNS($K1:K1)=LOOKUP($G4,{1,1001,10001,50001,100001},{1,2,3,4,5}),$G4,0))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,427

    Re: Formula / Calculation with multiple conditions

    That's more or less what I said in the second formula I offered. I did forget the absolute referencing, though. It should have been:

    =IF($I4="","",IF(COLUMNS($K1:K1)=LOOKUP($G4,{1,1001,10001,50001,100001},{1,2,3,4,5}),$G4,0))

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,624

    Re: Formula / Calculation with multiple conditions

    Hahaha. I didn't even SEE the second formula.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,427

    Re: Formula / Calculation with multiple conditions

    More coffee ... !!!

+ 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 / Calculation with multiple conditions
    By kh99523 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2022, 11:10 AM
  2. Multiple conditions IF, percentage calculation on a range of cells
    By Dunnowhatfor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-07-2020, 03:20 PM
  3. [SOLVED] Calculation issue with multiple conditions
    By Cbirchfi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-19-2018, 03:36 PM
  4. [SOLVED] Correct Calculation of a Time Sheet - Multiple Conditions
    By Frejo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2018, 01:21 PM
  5. Calculation based on multiple conditions
    By doop4204 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-22-2015, 02:02 PM
  6. Calculation based on multiple conditions
    By jorjacman in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-02-2014, 10:17 AM
  7. aging calculation with multiple conditions
    By aws816 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2012, 04:38 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