+ Reply to Thread
Results 1 to 13 of 13

Whats is wrong with my Formula?

  1. #1
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Whats is wrong with my Formula?

    Hi, i need help, i don't know why, i am trying to do a Subtotal for my excel, however, i keep getting Error when i do the sumif portion.
    I uses Index, by right, should work, but i dont know y, it keep getting error.

    Morever, my z only has 6 value, however, when i do the sumif, the list by right should be 6 also, but i get a lot more.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 02-20-2024 at 01:13 PM.

  2. #2
    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,215

    Re: Whats is wrong with my Formula?

    I have removed the references to urgency. On a free help forum, you get help as and when someone wants to help. It's a bit pushy of you to tell us it's urgent.

    Now... at what LEVEL do you want sub-totals? For each unique value in column A? Something else?
    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

  3. #3
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Whats is wrong with my Formula?

    Opps. Sorry. Because i am rushing a report, its 1.25am my side (singapore). I never expect would encounter so many issue.

    Yes, subtotal at each change at Column A, to Subtotal H and I.

  4. #4
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Whats is wrong with my Formula?

    Worse, my laptop battery is going flat. I have been stuck at this error for 1 hour. Trying to solve myself. haiz...

  5. #5
    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,215

    Re: Whats is wrong with my Formula?

    LoL. Don't panic. Glenn to the rescue... Try this
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Whats is wrong with my Formula?

    Hi Glenn, thanks, but then, why is my initial formula wrong?

    We cannot use Sumif(Index(y,,1),z,(Index(y,,8)? Why is this so?

  7. #7
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Whats is wrong with my Formula?

    Quote Originally Posted by FT00 View Post
    Hi Glenn, thanks, but then, why is my initial formula wrong?

    We cannot use Sumif(Index(y,,1),z,(Index(y,,8)? Why is this so?
    Correct me if i am wrong, my way can only work if i am SUMIF another array. If i am doing SUMIF within the Array itself, i had to use your way?

  8. #8
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Whats is wrong with my Formula?

    Whenever i see Lambda, i start to sweat.....

  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,215

    Re: Whats is wrong with my Formula?

    SUMIF will only wotk with ranges Index(y,,1) isn't a range any more.

    Learn to love LAMBDAs, they will put an end to Pivot Tables and are revolutionising Excel.

  10. #10
    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,215

    Re: Whats is wrong with my Formula?

    The only time i use Excel now... is here. I'm retired from employement and live a hippy beach bum lifestyle. If I can get to grips with Lambda, so can you.

  11. #11
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184
    Quote Originally Posted by Glenn Kennedy View Post
    SUMIF will only wotk with ranges Index(y,,1) isn't a range any more.

    Learn to love LAMBDAs, they will put an end to Pivot Tables and are revolutionising Excel.
    Yes, i know Lambda is super useful. But somehow it make the formula appear super complicated..... haiz

  12. #12
    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,215

    Re: Whats is wrong with my Formula?

    With conditional formatting, to highlight the subtotal rows.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    184

    Re: Whats is wrong with my Formula?

    Wow! Thats a great idea!

+ 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. Whats wrong with my formula?
    By Eva10101 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2018, 09:10 AM
  2. Whats wrong with this formula?
    By blue-bullet in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-20-2009, 06:51 AM
  3. whats wrong with this formula?
    By only_lonely in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-14-2008, 08:23 AM
  4. Whats wrong with this formula?
    By Shane Moore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2006, 02:57 AM
  5. Whats Wrong With This Formula
    By curly88 in forum Excel General
    Replies: 3
    Last Post: 10-01-2006, 10:02 PM
  6. Whats wrong with my formula?
    By DKerr in forum Excel General
    Replies: 2
    Last Post: 09-05-2006, 07:02 AM
  7. whats wrong with the formula?
    By Gary in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2006, 06: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