May 07 2021 10:05 PM - edited May 07 2021 10:09 PM
Hello.
I was messing around in Excel and I want to subtract from the addition of one specific cell to another, only if the product is larger than a given criteria.
So e.g. B1=1500 , C8 = 5692 , condition = ">6400"
So if possible, I would want to write something like =SUMIF((B1+C8),">6400",-6400) or something like that.
I have 3 main problems:
1. The SUMIF function apparently only works for ranges of data, not specific cells. In this case, I only need 2 specific cells, i.e. B1 and C8. Am I using the wrong function then?
2. I don't know how to include the -6400 part if the conditions are met. How do I do that?
3. In the future, if let's say I would like to add more conditions, how do I introduce more conditions? Is it even possible in the first place?
If someone can kindly advise me, I would appreciate it very much, thank you...
Jun 09 2021 12:40 PM
Jun 10 2021 03:08 AM
Unfortunately, I can't follow your thoughts, it's probably because of the translator.
Please insert a file where you explain exactly what you want to accomplish, both will be helped.
Nevertheless, here is an approximate example, as I understand it).
In A1 is the Formula.
Hope I could help you with this ... otherwise please file :))
Nikolino
I know I don't know anything (Socrates)
Jun 10 2021 08:43 PM
@NikolinoDEI have attached an example of what I am working on below. If I7 for example says says N I would like the amount in H7 to forward to K7. I'm thinking an IF then formula. I hope that explains it If not please let me know.
Thanks for helping.
Jun 11 2021 08:16 AM
Solution@NikolinoDE Okay, my bad...I'm literally a newbie at this...
Let me just start by saying for all who are going to read this thread that I've solved my issue! I was messing around in Excel on my own and finally figured it out! But just to make it clear, I will outline the problem that I had up there ^ according to your "way" (for lack of better word...) and I'll also post how I solved it!
Problem:
A1 = 5
A2 = 12
B1 is the Formula (the one I had a problem with)
I wanted to code the B1 cell with a formula that would allow me to set my own arbitrary conditions, and change its value accordingly. In this example, Condition = If (A1+A2) > 10, (A1+A2)-10.
I don't know if that makes sense, but that's how clear-cut I can be...
Solution:
I fiddled around with the functions, and I realised that what I required wasn't a Mathematical function: it was a Logical one!
so, all I had to do was use the IF function (it's pretty dumb of me tbh, now that I think about how I was sweating beads trying to figure that bit out...). It becomes like this:
B1 =IF( (A1+A2)>10 , (A1+A2)-10 , (A1+A2) ) [LITERALLY type this expression into the cell]
The IF Syntax is: =IF( logical_expression , value_if_true , value_if_false )
So...for any beginners out there wanting to us the IF function like me about 2 weeks ago...this roughly translates to:
Condition: (A1+A2) is more than 10.
Value if true: if (A1+A2) is more than 10, subtract 10 from (A1+A2).
Value if false: if (A1+A2) is not more than 10, return (A1+A2) i.e. don't do anything to (A1+A2).
Using the data up there, A1+A2=17, so the B1 cell would return 7.
I really hope this helps anyone out there!! I'm not a tech whiz myself, and I don't even know whether I have the right to give these tips in the first place but...if I was a newbie in Microsoft and asking the forum regarding something difficult, I would much rather have the help than having none at all. Thank you for being so ready to help me out @NikolinoDE!! I really appreciate it :))
Jun 11 2021 08:30 AM
Jun 11 2021 02:51 PM
@kairoselvarroIf I was less than concise I apologize. Explaining things like this may not be my best suit.
So if I9 says Y or Yes I would like the amount in H9 to appear in K9 so it get it added to the running tally at K35. This may not be the best way of doing it and if you can suggest a better way by all means please do.
Thanks you guys.
Jun 13 2021 02:34 AM
I am not quite sure whether this is desired.
But if you want it, please mark it as the best answer so that other members can also benefit from it.
If this is not what you are looking for please ignore it.
Suggested solution in the inserted file.
Nikolino
I know I don't know anything (Socrates)
Jun 13 2021 06:09 AM
Jun 13 2021 06:10 AM
Jun 13 2021 06:48 AM - edited Jun 13 2021 06:52 AM
I can mark it as a best response!
However, this isn't exactly the answer I'm looking for for the problem I have up there ^ so I won't mark it as the best response. It sounds like this is another issue that is not reflected in my question. Please start a new question and you can mark it as your best response! I hope this helps...
Thank you so much for contributing in this post, though. I really can't thank you guys enough.
Jun 13 2021 07:04 AM
Jun 11 2021 08:16 AM
Solution@NikolinoDE Okay, my bad...I'm literally a newbie at this...
Let me just start by saying for all who are going to read this thread that I've solved my issue! I was messing around in Excel on my own and finally figured it out! But just to make it clear, I will outline the problem that I had up there ^ according to your "way" (for lack of better word...) and I'll also post how I solved it!
Problem:
A1 = 5
A2 = 12
B1 is the Formula (the one I had a problem with)
I wanted to code the B1 cell with a formula that would allow me to set my own arbitrary conditions, and change its value accordingly. In this example, Condition = If (A1+A2) > 10, (A1+A2)-10.
I don't know if that makes sense, but that's how clear-cut I can be...
Solution:
I fiddled around with the functions, and I realised that what I required wasn't a Mathematical function: it was a Logical one!
so, all I had to do was use the IF function (it's pretty dumb of me tbh, now that I think about how I was sweating beads trying to figure that bit out...). It becomes like this:
B1 =IF( (A1+A2)>10 , (A1+A2)-10 , (A1+A2) ) [LITERALLY type this expression into the cell]
The IF Syntax is: =IF( logical_expression , value_if_true , value_if_false )
So...for any beginners out there wanting to us the IF function like me about 2 weeks ago...this roughly translates to:
Condition: (A1+A2) is more than 10.
Value if true: if (A1+A2) is more than 10, subtract 10 from (A1+A2).
Value if false: if (A1+A2) is not more than 10, return (A1+A2) i.e. don't do anything to (A1+A2).
Using the data up there, A1+A2=17, so the B1 cell would return 7.
I really hope this helps anyone out there!! I'm not a tech whiz myself, and I don't even know whether I have the right to give these tips in the first place but...if I was a newbie in Microsoft and asking the forum regarding something difficult, I would much rather have the help than having none at all. Thank you for being so ready to help me out @NikolinoDE!! I really appreciate it :))