Problem With Formula

The Shadowman

New Member
Joined
May 5, 2021
Messages
47
Office Version
  1. 2019
Platform
  1. Windows
=IF(U8<34,T8+1,IF(U8="dnp",T8,IF(U8=34,T8,IF(U8=35,T8,IF(U8=36,T8,IF(U8=37,T8,IF(U8=38,T8-1,IF(U8=39,T8-1,IF(U8=40,T8-1,IF(U8>40,T8-2,IF($CH8="shots back blocked",T8)))))))))))

The formula above is in Column "V" and should respond to information from columns "T" and "U" only. However, when the data in T and U is provided it changes columns R P & N in error. I can not work out for the life of me why this is happening. R P and N should not be affected.

Is there an error in the formula? If there is I can't find it.

Please help
Thanks
Robert
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Does it change when you change values in those columns? Or does it change when you drag the formula to other cells?
 
Upvote 0
The Image may help
Does it change when you change values in those columns? Or does it change when you drag the formula to other cells?
In this case, placing Information in U should should make V respond accordingly. So to answer the question It's changing the values in U that R P and N are responding to. The formulars in R P and N are the same as T and V
 

Attachments

  • Rabble Test.jpg
    Rabble Test.jpg
    148.1 KB · Views: 8
Upvote 0
That a much too busy graphic for me to comprehend. Can you use the xl2bb add in to post a mini worksheet (link is below).
If you cannot use that, please post the data (with columns labeled) in a table that can be copied and pasted. Images cannot paste into cells.
 
Upvote 0
Try this;

Book2
TUVWX
7formula from post
852=IF(U8<34,T8+1, IF(U8="dnp",T8, IF(U8=34,T8, IF(U8=35,T8, IF(U8=36,T8, IF(U8=37,T8, IF(U8=38,T8-1, IF(U8=39,T8-1, IF(U8=40,T8-1, IF(U8>40,T8-2, IF($CH8="shots back blocked",T8)))))))))))=IF(U8="dnp",T8, IF(U8<34,T8+1, IF(AND(U8>=34,U8<38),T8, IF(AND(U8>=38,U8<=40),T8-1, IF(U8>40,T8-2, IF(U8="shots back blocked",T8,""))))))6
910dnp10
10103410
11103510
12103610
13103710
1410389
1510399
1610409
1710418
181011
1910shots back blocked8
2010428
Sheet1
Cell Formulas
RangeFormula
W8W8=FORMULATEXT(X8)
X8:X20X8=IF(U8="dnp",T8, IF(U8<34,T8+1, IF(AND(U8>=34,U8<38),T8, IF(AND(U8>=38,U8<=40),T8-1, IF(U8>40,T8-2, IF(U8="shots back blocked",T8,""))))))
 
Upvote 0
I don't understand the last condition. It is not going to execute in any of the formulas shown so far.
ie ="shots back blocked">40 is TRUE and this condition comes before the IF($CH8="shots back blocked",T8)
in Post #1 so it is not going to get to that If statement
I don't think @awoohaw knew what to do with it either and has just added it to the end but changed the reference to T8 and that condition will also never be executed.

I think this will do the same thing. as any of the previous formulas.

Excel Formula:
=T8 +
IF(U8="dnp",0,
IF(U8>40,-2,
IF(U8>=38,-1,
IF(U8>=34,0,1))))
 
Upvote 0
@awoohaw One issue with your formula is U8="shots back blocked" will never get executed.
Edit: @Alex Blakenburg beats me to it, but an option without nested IF.
Excel Formula:
=T8+(MATCH(TRUE,INDEX({41;38;34;0}<=U8,0),0)-3)*ISNUMBER(U8)
 
Last edited:
Upvote 0
I don't understand the last condition. It is not going to execute in any of the formulas shown so far.
ie ="shots back blocked">40 give TRUE and this condition comes before the IF($CH8="shots back blocked",T8)
in Post #1 so it is not going to get to that If statement
I don't think @awoohaw knew what to do with it either and has just added it to the end but changed the reference to T8 and that condition will also never be executed.

I think this will do the same thing. as any of the previous formulas.

Excel Formula:
=T8 +
IF(U8="dnp",0,
IF(U8>40,-2,
IF(U8>=38,-1,
IF(U8>=34,0,1))))
Doh!!! I didn't even notice that was a different cell reference. All OP was focused on were columns T and U, I just tried to reconstruct the formula so it would calculate based on only values in Column T and U. And, assumed when I was building mine that all the references were to U.

Regardless, I'm not sure what OP is asking for regarding why values are changing with respect to the other 3 columns.
OP: Can you help clarify what this means, what do R, P, and N mean in reference to T and U?
"It's changing the values in U that R P and N are responding to. The formulars in R P and N are the same as T and V"
 
Upvote 0
Each column with a coloured square is a golf score for one week and each row is an individual player. What is supposed to happen is that the golf score is entered and in the next column is the handicap adjusted according to the score. the handicap adjustment reference is taken from the column before the coloured score column. However, when I enter the score the handicap is changed for several weeks back. Only three shots back are allowed over the season hence the text "shots back blocked" message. Now what should happen is if the "shots back blocked" appears the handicap should not go up anymore. I suspect that this is where it's going wrong, but I can't work out why. Is my formula sequenced correctly??
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top