+ Reply to Thread
Results 1 to 12 of 12

formula changes can be made in 1 box and it effects the whole sheet

  1. #1
    Registered User
    Join Date
    06-26-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    33

    formula changes can be made in 1 box and it effects the whole sheet

    Hi, I have a worksheet with 100+ cells in it and it is a work in progress.

    I am using an IF statement to calculate the result. so example IF A1=1, then multiply by A2, if A1=2 then multiply by A3 and so on.

    My Formula:
    =
    IF(G15=1 SETTINGS!$H$5,B20*$F$3,IF(G15=2,B20*$F$5,IF(G15=3,B20*$F$6,IF(G15=4,B20*$F$7,IF(G15=5,B20*$F$8,IF(G15=6,B20*$F$9,
    IF(G15=1N SETTINGS!$K$5,B20*$I$3,IF(G15=$H$5,B20*$I$5,IF(G15=$H$6,B20*$I$6,IF(G15=$H$7,B20*$I$7,IF(G15=$H$8,B20*$I$8,IF(G15=$H$9,B20*$I$9,
    IF(G15=1R SETTINGS!$N$5,B20*$L$3,IF(G15=$K$5,B20*$L$5,IF(G15=$K$6,B20*$L$6,IF(G15=$K$7,B20*$L$7,IF(G15=$K$8,B20*$L$8,IF(G15=$K$9,B20*$L$9,
    IF(G15=1RN SETTINGS!$Q$5,B20*$O$3,IF(G15=$N$5,B20*$O$5,IF(G15=$N$6,B20*$O$6,IF(G15=$N$7,B20*$O$7,IF(G15=$N$8,B20*$O$8,IF(G15=$N$9,B20*$O$9,
    IF(G15=0,"0"
    )))))))))))))))))))))))))

    My Problem: As this is an ongoing process and continually i need to make modifications to the formula (ie edit by adding or deleting parts) and this formula is used in over 100+ cells, i have to made the modification then got through all 100+ cells and re-paste the updated formula in.

    Solution: I am looking for a way that i can simply edit the formula in 1 MASTER cell that then takes effect in all the other 100+ cells (Keeping in mind each of the 100+ cells that has the formula has a different cell to calculate from, eg from the formula above, G15 is always changing).

    Can anyone help?

    Thankyou

  2. #2
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    Re: formula changes can be made in 1 box and it effects the whole sheet

    Right off the bat, I see that you are missing "," in the first IF()
    =IF(G15=1, SETTINGS!$H$5,B20*$F$3,

    Also the 1 is numeric which is OK as is, however, 1N is text so you must enclose it within quotes, "1N" as well as the "1R" and "1RN"

    Also the "," between the $H$5 and B20*$F$3 becomes the "value if true" and B20*$F$3 becomes the "value if false", there fore it would need a closing parenthesis, or it has to go into the first IF statement's value if false just before the last parenthesis. The same problem in numerous IF statements. Your last IF statement lacks value if false, was it by design or you forgot?

    Since you did not include the worksheets used, I could not help you further.

    RJ

  3. #3
    Registered User
    Join Date
    06-26-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    33

    Re: formula changes can be made in 1 box and it effects the whole sheet

    Hi RJK

    Thankyou for the great feedback, i just noticed i had copied the incorrect formula here, with your help i have a fully functioning formula. Would you know if there is a way that i can edit that formula in 1 cell and it changes in all the other cells?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: formula changes can be made in 1 box and it effects the whole sheet

    This looks to me like you could use a vlookupfor this, instead of that nested IF

    upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    06-26-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    33

    Re: formula changes can be made in 1 box and it effects the whole sheet

    FDibbins, thankyou, i have attached the file to this.
    The red text is the formula.

    I will explore the vlookup idea thankyou

    frmula.xlsx

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: formula changes can be made in 1 box and it effects the whole sheet

    Based on that table you have, use this in A16...
    =INDEX($A$1:$L$7,MATCH(--LEFT(D13,1),$A$1:$A$7,0),IF(ISNUMBER(D13),2,MATCH(1&RIGHT(D13,LEN(D13)-1),$A$1:$L$1,0)+1))*E14
    and this in B16...
    =INDEX($A$1:$L$7,MATCH(--LEFT(D13,1),$A$1:$A$7,0),IF(ISNUMBER(D13),3,MATCH(1&RIGHT(D13,LEN(D13)-1),$A$1:$L$1,0)+2))*E14

    However, this could be greatly simplified, if you could put A1:L7 into 2 columns

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: formula changes can be made in 1 box and it effects the whole sheet

    If you could have 2 columns, like this...
    AL
    AM
    AN
    1
    1
    £7.20
    £8.00
    2
    2
    £7.20
    £9.00
    3
    3
    £7.20
    £10.00
    4
    4
    5
    5
    6
    6
    7
    7
    8
    1N
    £8.00
    £9.00
    9
    2N
    £8.00
    £10.00
    10
    3N
    £8.00
    £11.00
    11
    4N
    12
    5N
    13
    6N
    14
    7N
    15
    1R
    18
    9
    16
    2R
    18
    10
    17
    3R
    18
    11
    18
    4R
    19
    5R
    20
    6R
    21
    7R
    22
    1RN
    18
    19
    23
    2RN
    18
    20
    24
    3RN
    18
    21
    25
    4RN
    26
    5RN
    27
    6RN
    28
    7RN


    then you could just use this...
    =VLOOKUP(D13,$AL$1:$AN$28,2)*E14
    and this...
    =VLOOKUP(D13,$AL$1:$AN$28,3)*E14

  8. #8
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,887

    Re: formula changes can be made in 1 box and it effects the whole sheet

    or you could just put this dirty little formula in A16 and hit Ctrl + Shift + Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you wanna stay out of trouble then go with a single VLOOKUP like Ford suggests.
    Last edited by Jacc; 07-12-2015 at 07:44 PM.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: formula changes can be made in 1 box and it effects the whole sheet

    Jacc, nice 1!!

    No biggie, but you left off the *E14 bit...
    =MAX(IF($A$1:$L$7=D13,OFFSET($A$1:$L$7,0,1)))*E14

    And for the 2nd value...
    =MAX(IF($A$1:$L$7=D13,OFFSET($A$1:$L$7,0,2)))*E14
    Last edited by FDibbins; 07-12-2015 at 07:41 PM.

  10. #10
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,887

    Re: formula changes can be made in 1 box and it effects the whole sheet

    Ah! Thanks!

  11. #11
    Registered User
    Join Date
    06-26-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    33

    Re: formula changes can be made in 1 box and it effects the whole sheet

    Thankyou very much, the Vlookup has worked perfectly

    Thankyou

    *i will mark this post as solved and begin a new one, want to know if there is a way to send the entries on days (each box of what you have seen in the xls) to particular sheets (where i can choose which sheet to send it to)

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: formula changes can be made in 1 box and it effects the whole sheet

    Just to add in here - formulas cannot "send" anything, anywhere. They can only pull info in to the cell they reside in

+ 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] bug on the macro coded sheet, a protected sheet, every time i made an action i wanted
    By dondonordas in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-22-2014, 06:46 AM
  2. Replies: 1
    Last Post: 02-22-2014, 01:28 AM
  3. get data from entry made in invoice sheet and save it to seperate sheet
    By snehaljp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-26-2013, 04:55 PM
  4. [SOLVED] Formula that effects another cell rather than itself?
    By ThomasCarter in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-12-2012, 07:17 AM
  5. Filtering effects on a SUMIF formula
    By Flylloyd in forum Excel General
    Replies: 3
    Last Post: 03-24-2012, 04:04 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