Home

Index Formula

%3CLINGO-SUB%20id%3D%22lingo-sub-558353%22%20slang%3D%22en-US%22%3EIndex%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-558353%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20working%20on%20a%20stock%20market%20index%20analysis.%20I%20need%20help%20in%20developing%20the%20formulas%20for%20columns%20%E2%80%9CK%E2%80%9D%20and%20column%20%E2%80%9CN%E2%80%9D.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20bet%20the%20index%20(column%20%E2%80%9CF%E2%80%9D)%20will%20either%20go%20up%20(Long)%20or%20go%20down%20(Short).%20I%20can%20also%20set%20a%20Target%20(columns%20%E2%80%9CI%E2%80%9D%20%26amp%3B%E2%80%9CL%E2%80%9D)%20and%20a%20Stop%20Loss%20(columns%20%E2%80%9CJ%20%26amp%3B%20%E2%80%9CM%E2%80%9D)%20price%20on%20every%20bet.%20I%20can%20change%20the%20Target%20in%20cell%20J4%20%26amp%3B%20M4%20and%20change%20the%20Stop%20Loss%20in%20cells%20J5%20%26amp%3B%20M5.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20determine%20which%20bets%20would%20be%20successful%20or%20not%20(columns%20%E2%80%9CK%E2%80%9D%20%26amp%3B%20%E2%80%9CN%E2%80%99).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20make%20this%20Win%20or%20Lose%20determination%20I%20need%20to%20determine%20which%20number%20came%20first%20in%20the%20Close%20column%20(column%20%E2%80%9CF%E2%80%9D)%20the%20Target%20number%20(column%20%E2%80%9CI%E2%80%9D)%20or%20Stop%20Loss%20number%20(column%20%E2%80%9CJ%E2%80%9D).%20If%20the%20Target%20number%20came%20first%20it%20is%20a%20%E2%80%9CWIN%E2%80%9D%20if%20the%20Stop%20Loss%20number%20came%20first%20it%20is%20a%20%E2%80%9CLOSE%E2%80%9D.%20The%20same%20determination%20needs%20to%20be%20made%20for%20columns%20%E2%80%9CL%E2%80%9D%20%26amp%3B%20%E2%80%9CM%E2%80%9D.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20spread%20sheet%20model%20is%20attached%20for%20your%20reference.%20I%20appreciate%20any%20assistance%20you%20can%20provide.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-558353%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-560505%22%20slang%3D%22en-US%22%3ERe%3A%20Index%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-560505%22%20slang%3D%22en-US%22%3EPlease%20clarify%20how%20you%20determine%20which%20number%20came%20first.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-560798%22%20slang%3D%22en-US%22%3ERe%3A%20Index%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-560798%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20response.%3C%2FP%3E%3CP%3EI%20currently%20manually%20visually%20add%20and%20subtract%20the%20numbers%20in%20column%20G%20to%20determine%20when%20the%20sum%20%3D%20or%20greater%2Fless%26nbsp%3B%20than%20the%20number%20in%20J4%20or%20J5%20and%20then%20do%20it%20again%20for%20M4%20and%20M5.%20My%20issue%20is%20that%20I%20cannot%20find%20a%20formula%20that%20will%20sum%20the%20numbers%20in%20column%20G%20to%20reach%20the%20Target%20or%20Stop%20Loss%20number%20and%20then%20drop%20one%20cell%20and%20repeat%20the%20calculation.%20Example%20is%20G10%20%2B%20G11%20%3DM4%20which%20is%20a%20Short%20Result%20WIN(N9)%20because%20the%20sum%20of%20the%20numbers%20in%20column%20G%20were%20%3D%20or%20less%20than%20M4%20before%20M5.%20Where%20as%20the%20Long%20Result%20is%20a%20LOSE%20because%20the%20sum%20of%20F9%3AF40%20%3DJ5%20before%20the%20sum%20number%20in%20J4.%3C%2FP%3E%3CP%3EAs%20I%20look%20at%20the%20worksheet%20cells%20J5%20and%20M4%20should%20probably%20be%20Negative%20numbers..%20Hope%20this%20helps.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-562294%22%20slang%3D%22en-US%22%3ERe%3A%20Index%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-562294%22%20slang%3D%22en-US%22%3EIt%20would%20be%20better%20if%20you%20fill%20in%20Columns%20K%20and%20N%20with%20your%20desired%20results.%20Then%2C%20attach%20again%20your%20sample%20file%20with%20such%20desired%20results.%20Thereby%2C%20I%20will%20be%20able%20to%20ascertain%20the%20logic%20of%20the%20formula%20you%20need.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-612567%22%20slang%3D%22en-US%22%3ERe%3A%20Index%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-612567%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%20for%20the%20delay.%20I%20have%20attached%20a%20new%20sample%20worksheet%20with%20my%20manual%20calculations%20for%20your%20review.%20Thanks%20again%20for%20the%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-614958%22%20slang%3D%22en-US%22%3ERe%3A%20Index%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-614958%22%20slang%3D%22en-US%22%3EGiven%20the%20sum%20results%20in%20Column%20C%2C%20the%20formula%20in%20D8%2C%20copied%20down%20rows%2C%20would%20be%20a%20simple%20IF%2C%20like%20this%3A%3CBR%20%2F%3E%3DIF(C8%26gt%3B0%2C%3CBR%20%2F%3E%22WIN%22%2C%3CBR%20%2F%3E%22LOSE%22)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-615424%22%20slang%3D%22en-US%22%3ERe%3A%20Index%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-615424%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20reply%2C%20the%20formula%20works%20great%20in%20column%20D%20but%20what%20I%20need%20is%20the%20formula%20for%20column%20%22C%22%20so%20that%20I%20don't%20have%20to%20calculate%20it%20manually.%20Column%20%22C%22%20sums%20the%20numbers%20in%20Column%20%22B%22%20until%20the%20sum%20either%20reaches%20a%20positive%20%2410%20or%20a%20negative%20%2410.%26nbsp%3B%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Rdfallon
Occasional Contributor

I am working on a stock market index analysis. I need help in developing the formulas for columns “K” and column “N”.

 

I can bet the index (column “F”) will either go up (Long) or go down (Short). I can also set a Target (columns “I” &“L”) and a Stop Loss (columns “J & “M”) price on every bet. I can change the Target in cell J4 & M4 and change the Stop Loss in cells J5 & M5.

 

I am trying to determine which bets would be successful or not (columns “K” & “N’).

 

To make this Win or Lose determination I need to determine which number came first in the Close column (column “F”) the Target number (column “I”) or Stop Loss number (column “J”). If the Target number came first it is a “WIN” if the Stop Loss number came first it is a “LOSE”. The same determination needs to be made for columns “L” & “M”.

 

The spread sheet model is attached for your reference. I appreciate any assistance you can provide.

6 Replies
Please clarify how you determine which number came first.

@Twifoo 

Thank you for your response.

I currently manually visually add and subtract the numbers in column G to determine when the sum = or greater/less  than the number in J4 or J5 and then do it again for M4 and M5. My issue is that I cannot find a formula that will sum the numbers in column G to reach the Target or Stop Loss number and then drop one cell and repeat the calculation. Example is G10 + G11 =M4 which is a Short Result WIN(N9) because the sum of the numbers in column G were = or less than M4 before M5. Where as the Long Result is a LOSE because the sum of F9:F40 =J5 before the sum number in J4.

As I look at the worksheet cells J5 and M4 should probably be Negative numbers.. Hope this helps. Thanks

It would be better if you fill in Columns K and N with your desired results. Then, attach again your sample file with such desired results. Thereby, I will be able to ascertain the logic of the formula you need.

@Twifoo 

Sorry for the delay. I have attached a new sample worksheet with my manual calculations for your review. Thanks again for the help.

Given the sum results in Column C, the formula in D8, copied down rows, would be a simple IF, like this:
=IF(C8>0,
"WIN",
"LOSE")

@Twifoo 

Thanks for the reply, the formula works great in column D but what I need is the formula for column "C" so that I don't have to calculate it manually. Column "C" sums the numbers in Column "B" until the sum either reaches a positive $10 or a negative $10.  Thanks

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies