+ Reply to Thread
Results 1 to 15 of 15

Expand Formula Across Multiple Cells

  1. #1
    Registered User
    Join Date
    05-15-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft 365 Version 2104
    Posts
    6

    Question Expand Formula Across Multiple Cells

    Hi,

    I have added new columns to my spreadsheet and have gone from 60 columns (H11:BO11) to 500 (H11:SM11) but my formula has not automatically continued as it involves multiple cells. The only way I can expand it is to type in each new cell to the formula. Does anyone know an easier way?


    This is the current formula from H11 to BO11:

    =IF(D11="",0(IF(H11=$H$10,1,0)+IF(I11=$I$10,1,0)+IF(J11=$J$10,1,0)+IF(K11=$K$10,1,0)+IF(L11=$L$10,1,0)+IF(M11=$M$10,1,0)+IF(N11=$N$10,1,0)+IF(O11=$O$10,1,0)+IF(P11=$P$10,1,0)+IF(Q11=$Q$10,1,0)+IF(R11=$R$10,1,0)+IF(S11=$S$10,1,0)+IF(T11=$T$10,1,0)+IF(U11=$U$10,1,0)+IF(V11=$V$10,1,0)+IF(W11=$W$10,1,0)+IF(X11=$X$10,1,0)+IF(Y11=$Y$10,1,0)+IF(Z11=$Z$10,1,0)+IF(AA11=$AA$10,1,0)+IF(AB11=$AB$10,1,0)+IF(AC11=$AC$10,1,0)+IF(AD11=$AD$10,1,0)+IF(AE11=$AE$10,1,0)+IF(AF11=$AF$10,1,0)+IF(AG11=$AG$10,1,0)+IF(AH11=$AH$10,1,0)+IF(AI11=$AI$10,1,0)+IF(AJ11=$AJ$10,1,0)+IF(AK11=$AK$10,1,0)+IF(AL11=$AL$10,1,0)+IF(AM11=$AM$10,1,0)+IF(AN11=$AN$10,1,0)+IF(AO11=$AO$10,1,0)+IF(AP11=$AP$10,1,0)+IF(AQ11=$AQ$10,1,0)+IF(AR11=$AR$10,1,0)+IF(AS11=$AS$10,1,0)+IF(AT11=$AT$10,1,0)+IF(AU11=$AU$10,1,0)+IF(AV11=$AV$10,1,0)+IF(AW11=$AW$10,1,0)+IF(AX11=$AX$10,1,0)+IF(AY11=$AY$10,1,0)+IF(AZ11=$AZ$10,1,0)+IF(BA11=$BA$10,1,0)+IF(BB11=$BB$10,1,0)+IF(BC11=$BC$10,1,0)+IF(BD11=$BD$10,1,0)+IF(BE11=$BE$10,1,0)+IF(BF11=$BF$10,1,0)+IF(BG11=$BG$10,1,0)+IF(BH11=$BH$10,1,0)+IF(BI11=$BI$10,1,0)+IF(BJ11=$BJ$10,1,0)+IF(BK11=$BK$10,1,0)+IF(BL11=$BL$10,1,0)+IF(BM11=$BM$10,1,0)+IF(BN11=$BN$10,1,0)+IF(BO11=$BO$10,1,0)))

    excel.PNG

    TIA!!!
    Last edited by Taylah; 05-16-2021 at 04:31 AM. Reason: No longer cross posted

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Expand Formula Across Multiple Cells

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

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: Expand Formula Across Multiple Cells

    Note: Solution also posted at cross-post

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    I have added the link for you since it is your first post.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    05-15-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft 365 Version 2104
    Posts
    6

    Re: Expand Formula Across Multiple Cells

    Hi,

    Thanks for trying, however there was an error in the formula.

  5. #5
    Registered User
    Join Date
    05-15-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft 365 Version 2104
    Posts
    6

    Re: Expand Formula Across Multiple Cells

    Hi,

    Sorry this is the first time I have posted.
    Thanks for that!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Expand Formula Across Multiple Cells

    I'm guessing that should be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Registered User
    Join Date
    05-15-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft 365 Version 2104
    Posts
    6

    Re: Expand Formula Across Multiple Cells

    Quote Originally Posted by ChemistB View Post
    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Does that work for you?
    Quote Originally Posted by TMS View Post
    I'm guessing that should be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi,

    Thanks for trying, unfortunately though it didn't expand the whole formula.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Expand Formula Across Multiple Cells

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    (and be aware your comments on your cross-post have been read)

  9. #9
    Registered User
    Join Date
    05-15-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft 365 Version 2104
    Posts
    6

    Re: Expand Formula Across Multiple Cells

    Hi,

    I have attached a screenshot, are you unable to see this from your end?

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Expand Formula Across Multiple Cells

    Quote Originally Posted by Taylah View Post
    Hi,

    Sorry this is the first time I have posted.
    Thanks for that!
    You miss the point. Did you look at the rule to which you were referred above?

    It may be the first time you've posted here, but you have asked the question on at least one other forum. That's not a problem in itself, but you are required to declare it.

    Please read this to understand why most forums have this rule: https://www.excelguru.ca/content.php?184

    I have attached a screenshot, are you unable to see this from your end?
    Yes, but you have been asked for a workbook, NOT a picture of one.
    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.

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Expand Formula Across Multiple Cells

    As you haven't said why the formulae here & on Chandoo don't work it doesn't really help us.
    That said this would cover the entire range
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: Expand Formula Across Multiple Cells

    Quote Originally Posted by Taylah View Post
    I have attached a screenshot, are you unable to see this from your end?
    Unlike some other forums, we support the ability to attach an actual file to your post.

    An image attachment has limited value. Just attach the Excel file. It's easier than taking a screenshot first and then attaching that. Having your file allows us to see and experiment with your data, layout, formulas, code, and possibly attach a file with a completed solution.

    The paper clip icon does not work for attachments. To attach a file:

    1. Under the text box where you type your reply click the Go Advanced button.
    2. On the next screen scroll down and under the Attachments section click the Manage Attachments link, which will show a pop-up window.
    3. Click the Choose File button to select a file to attached.
    4. Click the Upload button to upload the file.
    5. Then click the Close This Window button. Your file is now attached to your post.

  13. #13
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Expand Formula Across Multiple Cells

    I'm not sure what you mean by "it did not expand the whole formula." The given formula (thanks for the typo correction TMS), gives the total number of times where the value in 10 = the value in 11 from columns H to SM.

    If you want to drag that formula down so that it gives the value in 11 = value in 12, then value in 12 = value in 13 and so forth, then
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    05-15-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft 365 Version 2104
    Posts
    6

    Re: Expand Formula Across Multiple Cells

    Hi, unfortunately dragging the formula doesn't work as each cell has its own rule. I've attached a mock spreadsheet as you guys suggested, so it may explain what I mean better. When you open the spreadsheet the formula that needs work is in cell G11. Then from H12 to B012 (Column 1-60) the formula works fine, then the only way I have worked out to expand it is to type in each new columns formula (I have done so for BP12 (Column 61) to show what I mean). The issue is when this information is missing, row 6 doesn't calculate the item difficulty which impacts other sheets. Hopefully that makes sense Thanks again for trying to help me with my problem everyone, I really appreciate it!
    Attached Files Attached Files

  15. #15
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Expand Formula Across Multiple Cells

    try
    =sum(h11:sm11)

    or
    =SUMPRODUCT(--($H$10:$SM$10=H11:SM11))
    Attached Files Attached Files

+ 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] Expand a formula to other cells - given the complexity of the formula, a bit tricky
    By Schroeder70 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-03-2021, 04:32 AM
  2. [SOLVED] Expand the current formula to include additional cells
    By Demogorgan in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 02-14-2021, 04:04 PM
  3. Replies: 3
    Last Post: 04-25-2020, 09:46 AM
  4. [SOLVED] How can I expand selection of multiple non contiguous cells by certain number of columns?
    By trickyricky in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-03-2019, 01:20 PM
  5. Replies: 6
    Last Post: 11-13-2018, 04:54 AM
  6. [SOLVED] Expand selection to multiple cells
    By bobbybill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2012, 10:53 AM
  7. [SOLVED] Using the balance sheet template, any way to expand?-way to expand
    By RABBITS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-27-2005, 02:05 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