..You are smart enough to get others to do your work .. maybe
आपण मुर्ख नाही कारण आपण इंग्रजीमध्ये संप्रेषण करू शकत नाही. मी मराठी किंवा हिंदी बोलू शकत नाही. पण या कारणास्तव मी मूर्ख नाही
I try this as the Question…..
Explanation 2
For all data rows, we compare column H to column D. If column H is greater than column D , then we adjust the value in column K up to the nearest multiple of .05. If column H is less than column D , then we adjust the value in column K down to the nearest multiple of .05. ( If the value in column K is an exact multiple of .05, then no action is to be taken )
VBA answer
Put columns in arrays
Row\Col D 1Open 2 1087 3 148.05 4 265 5 30.4
arrD() =
1087 148.05 265 30.4
Row\Col H 1LTP 2 1079.9 3 146.5 4 267.15 5 29.95
arrH() =
1079.9 146.5 267.15 29.95
Row\Col K 1 2 1090.69 3 147.95 4 264.47 5 30
arrK() ( initial ) =
1090.69 147.95 264.47 30
The macro below manipulates the contents of arrK() as per the question requirement, then pastes the modified array over the initial values
Macro here: http://www.excelfox.com/forum/showth...ll=1#post13105
After running that macro, Sub ChangeSecondNumberAfterDecimalConditionally() , the arrK() contents change to
1090.65 147.95 264.5 30
And that is then pasted out into the range
Row\Col K 1 2 1090.65 3 147.95 4 264.5 5 30






Reply With Quote

Bookmarks