+ Reply to Thread
Results 1 to 3 of 3

clunky formula i need help with

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    6

    clunky formula i need help with

    I've got a formula that is supposed to look at 1 cell, then cross-ref that with another number and tally that with numbers under it. Like if my check cell is 10, i want to add up everything on my table 10 and under. Here's the formula as it stands...

    =IF(Character!$C$3=4,Z87,IF(Character!$C$3=5,SUM(Z87:Z88),IF(Character!$C$3=6,SUM(Z87:Z89),IF(Character!$C$3=7,SUM(Z87:Z90),IF(Character!$C$3=8,SUM(Z87:Z91),IF(Character!$C$3=9,SUM(Z87:Z92),IF(Character!$C$3>=10,SUM(Z87:Z93),0)))))))

    I would love a way to streamline this, as right now my formula is for numbers 4 to 10, but I could possibly go all the way to 20. You can see that when my target cell=4, I'm only adding 2 other cells, but at 10 I add 7. I can only nest 7 times, and I'm at my limit. Any help would be very appreciated!

    Rudy

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: clunky formula i need help with

    Perhaps

    =IF(N(Character!$C$3)<4,0,SUM(Z$87:INDEX(Z$87:Z$93,Character!$C$3-3)))
    Change references to suit (ie if you add more numbers change reference to Z93 accordingly)

    You could also use OFFSET but it is Volatile, eg:

    =IF(N(Character!$C$3)<4,0,SUM(OFFSET(Z$87,,,Character!$C$3-3,1)))

  3. #3
    Registered User
    Join Date
    08-04-2009
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    6

    Re: clunky formula i need help with

    I just input the first function and it works beautifully!

    Thank you SO much!

    Rudy

+ 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