logo elektroda
logo elektroda
X
logo elektroda

EXCEL - IF Formula: Multiple Conditions, H6 Cell, SUM Function (Welcome & Guide)

weglarski_85 85722 16
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • ADVERTISEMENT
  • #2 12862533
    dt1
    Admin of Computers group
    Welcome,
    The IF formula (and most others) can be nested.

    IF (G6 = "OFF"; _ here_OFF_ formula; IF (G6 = "DW"; _ here_DW_formula; IF (G6 = "BD"; _ here_BD formula; IF (G6 = "ND4"; _ here_formula_D4; _here_other_all))

    If you do not expect anything else apart from these four, the last term (for ND4) can be shortened and everything else can be treated as ND4.

    Alternatively, if you don't want to nest - in this function you add something depending on one of the four different G6s - you can add the results of the four IF for each case (each IF should return 0 (zero) if G6 doesn't match):

    = YOUR_FORMULA + IF (G6 = "OFF"; _ value_for_OFF; 0) + IF (G6 = "DW"; _ value_for_DW; 0) + IF ...
  • ADVERTISEMENT
  • #4 12862629
    weglarski_85
    Level 9  
    I am just popping up information:
    The value provided is not valid. The user has restricted the values that can be entered in this cell. What is going on?

    Added after 1 [minutes]:

    Well, I was looking on the web and I keep popping up with the above message. I would like to add that I am already working on a pre-prepared file and it is about editing it, not creating a new one.
  • Helpful post
    #5 12862651
    yogi009
    Level 43  
    Pops up where? After approving the formula? Then the formula has an error, you need to write it correctly. Start with some other worksheet, write something with a nested if () function to understand how such an entry works.
  • #6 12862671
    weglarski_85
    Level 9  
    So:
    I pop up after entering a formula, but only in that particular cell. As if she had some mistake. I don't know how to totally format this cell. Must have set something up for this cell by creating this file.

    Added after 35 [seconds]:

    On another sheet, with a clean one, it works fine.

    Added after 3 [minutes]:

    MANAGED TO!

    Thank you very much for your help ;)

    I followed the straightest resistance line and pasted the cell where the formula works, and that's what I wanted.

    Greetings.
  • #8 12862725
    yogi009
    Level 43  
    The smallest resistance line usually won't make you sure that you'll solve a similar puzzle the next time. It is worth analyzing and understanding the topic.
  • ADVERTISEMENT
  • #10 12862822
    JRV
    VBA, Excel specialist
    [quote = "weglarski_85"] Well, the information is popping up:
    The value provided is not valid. The user has restricted the values that can be entered in this cell. What is going on?

    frame has been a dataset validation is not necessary if the formula
    Sorry for the bad grammar this is machine translation
  • #11 14000674
    KahrloS
    Level 10  
    I also have a problem with the IF function, namely, based on my example, I need to do so that on the "report" tab in the cell from F3 down to the end of the range, the content from the "types" tab, column from B2 to the end of the range, appears.

    In other words, insert the IF function which will check whether the given telephone number is "cell" or "i-plus".

    Please help
  • ADVERTISEMENT
  • #12 15074140
    karrolus
    Level 1  
    Hello. I have a trivial problem. I would like to write a formula in which the value in the cell changed for me to another. For example, if it is 1, it changed to 4, 2 changed to 3, 3 changed to 2, 4 changed to 1. In other cases, let the "original" value remain in the cell. Is there anyone help me?
  • #14 15430209
    chudyy11978
    Level 2  
    Hi. I have a similar question. I need to reference 9 different variants:
    1 - if cell a1 = 1 then display the result a2-a3, if a1 = 2 then a4-a5, etc ... below example ... everything is ok, but up to 6 references.

    = IF (AND (D22 = 1), D23-D4, IF (AND (D22 = 2), D6-D23, IF (AND (D22 = 3), D8-D23, IF (AND (D22 = 4), D10 -D23, IF (AND (D22 = 5), D12-D23, IF (AND (D22 = 6), D14-D23))))))

    At 7, I have information that too many arguments have been entered for this function. How do I get around it? Can anyone help?
  • #15 15430365
    dt1
    Admin of Computers group
    If you did not make a mistake in your example and in the case of "1" you do d23-d4, and in other cases you do d23-x (x will be some value), then you will have to apply the condition for one and the rest to do the rest (variant 2 in my example). If you have a bug and in case 1 you also want to do d4-d23, you can do it even more without a condition (variant 1 of my example). The "slack" variant takes advantage of the fact that the cells to perform the action are closely related to the numerical value of the cell being checked (exactly every stitch you go down two rows lower), so you can afford something like that.

    Alternatively, variant 3, where you do everything on foot, but not nesting IF functions, but combining their results. The conditions are precise so neither will occur twice, as a result you always get 8 blank characters and one answer as a result. The result is treated as text, so I closed everything in the VALUE function, which converts this text to a number. Variant 3 produces the same results as Variant 2. Variant 3 works all the time without nesting, so there is no limit of 6 items.
  • #16 15430407
    chudyy11978
    Level 2  
    dt1 wrote:
    If you did not make a mistake in your example and in the case of "1" you do d23-d4, and in other cases you do d23-x (x will be some value), then you will have to apply the condition for one and the rest to do the rest (variant 2 in my example). If you have a bug and in case 1 you also want to do d4-d23, you can do it even more without a condition (variant 1 of my example). The "slack" variant takes advantage of the fact that the cells to perform the action are closely related to the numerical value of the cell being checked (exactly every stitch you go down two rows lower), so you can afford something like that.

    Alternatively, variant 3, where you do everything on foot, but not nesting IF functions, but combining their results. The conditions are precise so neither will occur twice, as a result you always get 8 blank characters and one answer as a result. The result is treated as text, so I closed everything in the VALUE function, which converts this text to a number. Variant 3 produces the same results as Variant 2. Variant 3 works all the time without nesting, so there is no limit of 6 items.



    Thanks a lot. Option 3 is perfect. I'd like to think about what's going on for a long time ... Regards and thank you very much once again.
  • #17 15430441
    dt1
    Admin of Computers group
    If the data is arranged as in the example, then option 1 or 2 is more elegant.

Topic summary

The discussion revolves around the use of the IF formula in Excel, particularly for handling multiple conditions and issues related to cell validation errors. Users share insights on nesting IF functions, with one suggesting a structure for handling four specific conditions based on the value in cell G6. Another user encounters a validation error when entering a formula in a specific cell, which is resolved by copying a working formula from another sheet. Additional resources and links are provided for further learning about nested functions in Excel. The conversation also touches on alternative methods for achieving similar results without excessive nesting, emphasizing the importance of understanding the underlying logic of the formulas.
Summary generated by the language model.
ADVERTISEMENT