+ Reply to Thread
Results 1 to 6 of 6

Multiple IF calculating two cells and totalling

  1. #1
    Registered User
    Join Date
    05-31-2023
    Location
    England
    MS-Off Ver
    2017
    Posts
    3

    Multiple IF calculating two cells and totalling

    Hi All,

    I was wondering if it is possible to count a number from two cells and add them together? Example below.

    In one cell I would like to be able to know the following:

    If number in C4 is less than 5 in C4 then score it 1
    If number in C4 is between 6-10 then score it 2
    If number in C4 is between 11-26 then score it 3
    If number in C4 is greater than 27+ then score it 4
    If number in C5 is less than 4 then score it 1
    If number in C5 is between 5-10 then score it 2
    If number in C5 is between 11-23 then score it 3
    If number in C5 is greater than 24+ then score it 4

    Then combine the two numbers for a total. So if C4 was scored 1 and C5 is scored 2 then the formulae would return 3.

    So far I have this formulae that is counting one cell =IF(B4<5,1,IF(B4<10,2,IF(B4<26,3,4)))

    I hope this makes sense : )
    Attached Files Attached Files
    Last edited by Dan_Billingham; 06-01-2023 at 05:59 AM. Reason: Adding attchment

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

    Re: Multiple IF calculating two cells and totalling

    Which version of Excel are you currently using?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,786

    Re: Multiple IF calculating two cells and totalling

    Better done with lookup tables:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    C
    D
    E
    F
    G
    H
    I
    J
    K
    4
    5
    3
    =VLOOKUP(C4,$G$7:$H$10,2,1)+VLOOKUP(C5,$J$7:$K$10,2,1)
    5
    6
    6
    7
    0
    1
    0
    1
    8
    6
    2
    5
    2
    9
    11
    3
    11
    3
    10
    27
    4
    24
    4
    Sheet: Sheet1

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

    Re: Multiple IF calculating two cells and totalling

    another way,

    =LOOKUP(C4,{0,6,11,27},{1,2,3,4})+LOOKUP(C5,{0,5,11,24},{1,2,3,4})

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Multiple IF calculating two cells and totalling

    Or try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Multiple IF calculating two cells and totalling

    Thanks for the rep .

+ 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] Need help totalling columns that have multiple if commands
    By joe Trimtech in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-09-2023, 03:31 AM
  2. Calculating averages with multiple cells with multiple sheets
    By CEMEL in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-22-2018, 11:17 PM
  3. Totalling Multiple Arrays
    By snoproladd in forum Excel General
    Replies: 3
    Last Post: 02-22-2012, 09:56 AM
  4. Excel 2007 : Totalling selected cells
    By Cabbie in forum Excel General
    Replies: 6
    Last Post: 02-05-2012, 08:44 PM
  5. totalling cells
    By Davycc in forum Excel General
    Replies: 2
    Last Post: 12-16-2010, 06:52 PM
  6. Totalling various cells
    By baj0507 in forum Excel General
    Replies: 7
    Last Post: 04-17-2009, 05:33 PM
  7. Totalling identical cells
    By tdangelo in forum Excel General
    Replies: 5
    Last Post: 02-14-2009, 12:12 PM

Tags for this Thread

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