+ Reply to Thread
Results 1 to 5 of 5

Minimize formula too long for a cell

  1. #1
    Registered User
    Join Date
    09-04-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Minimize formula too long for a cell

    Hello
    Attached is my sheet sample with also more details questions.
    I've been doing my expenses on excel sheet entering the data manually.
    I want to copy and paste my bank statement and do it automatically.


    My simple question is: How do I simplified a formula storing a repetitive function and variable data ?

    Is it possible to save the part of the formula on a cell a make reference to it
    Attached Files Attached Files

  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 2403
    Posts
    44,063

    Re: Minimize formula too long for a cell

    I simply CANNOT use RC notation... so I went back to conventional notation. This is an array formula in your Excel version:

    =SUMPRODUCT(--(MMULT(--(ISNUMBER(SEARCH(TRANSPOSE(L27:L29),D11:D32))),ROW(L27:L29)^0)>0)*F11:F32)

    Feel free to reset to RC notation!!
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 03-27-2023 at 04:51 PM.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Minimize formula too long for a cell

    Ahhh the usual problem. US dates versus rest-of-world dates. So, I reformatted dates into MDY format and added a filter to count by month. See revised file. I changed one date for testing.

    D4, entered as an array formula, copied across.

    =SUMPRODUCT(--(MMULT((--(ISNUMBER(SEARCH(TRANSPOSE($L$27:$L$29),$D$11:$D$32)))*(TEXT($C$11:$C$32,"mmm")=D2)),ROW($L$27:$L$29)^0)>0)*$F$11:$F$32)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-04-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Minimize formula too long for a cell

    Thank you Glenn. Problem solved

  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 2403
    Posts
    44,063

    Re: Minimize formula too long for a cell

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) 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. Replies: 6
    Last Post: 09-06-2005, 12:05 PM
  2. Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  6. Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. Replies: 1
    Last Post: 07-08-2005, 11:05 PM
  8. Replies: 2
    Last Post: 07-08-2005, 11:05 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