+ Reply to Thread
Results 1 to 4 of 4

Need help changing a long formula without doing it manually

  1. #1
    Registered User
    Join Date
    10-12-2014
    Location
    Kuwait
    MS-Off Ver
    2010
    Posts
    4

    Need help changing a long formula without doing it manually

    Hey guys

    Ok, so I have some really long Sumifs formulas with around 20 Criteria's. The problem is sometimes I need the same formula but just change all the criterias from one column to another.

    A good example is the following.

    "=(SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"LGP-Rev-KWD")+SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"LGT-Rev-KWD")+SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"LCM-Rev-KWD")+SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"TWQ-Rev-KWD")+SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"IST-Rev-KWD")+SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"LGO-Rev-KWD")+SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"LCS-Rev-KWD")+SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"LCA-Rev-KWD")+SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"IJR-Rev-KWD")+SUMIFS('RM Summarized'!$I:$I,'RM Summarized'!$O:$O,'Main Sheet'!$A3,'RM Summarized'!$D:$D,"WKL-Rev-KWD"))"

    This is a short one that I have and what I wanted to do is basically Copy it to another cell and change all the "$I,$I" columns to lets say "$S,$S". What I currently do is open the formula and change it manually which takes a looong time. Is there a faster way to get this done?

    Only thing that I thought about it to paste it on word or something and do a replace all "$O,$O" to "$S,$S" though not sure that will work.

    Thanks in advance.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Need help changing a long formula without doing it manually

    You can remove the equals sign, which essentially changes the Formulas to a Text String.. Then Use Find & Replace as you normally would on a text string to replace values.. Then add the Equals sign again.. And you are good to go!
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    10-12-2014
    Location
    Kuwait
    MS-Off Ver
    2010
    Posts
    4

    Re: Need help changing a long formula without doing it manually

    Thanks a lot man :D

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Need help changing a long formula without doing it manually

    Glad it helped!

+ 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: 06-03-2014, 12:08 PM
  2. [SOLVED] SUMIF wildcard , doing manually 300 times will take long
    By makinmomb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-08-2014, 02:01 AM
  3. Date formats changing when texting to columns manually vs macro
    By mehmehmehmeh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2009, 12:44 PM
  4. Changing Manually entered matrix values via macro
    By Blailus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2008, 11:18 PM
  5. Timestamps of manually changing cells
    By Shadowmistress in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-15-2006, 07:56 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