Another Excel Formula For Stocks (Positive, Negative, Or Even)

rebel123

Active Member
Joined
Apr 18, 2017
Messages
348
Office Version
  1. 365
Platform
  1. MacOS
Thanks for your help. Please post the formula in an equals formula, please
with the exact cell numbers also.

I am doing stock research and I wanted to find out
how what the answer is (where I can drag the formula down)
for rows T213 and T214.

The way the formula works is like this
$53,376 COMPARED TO $54,498 COMPARED TO $42,572 COMPARED TO $66,807

ANSWER FOR T213 is Up, Down, Up
(Because $53,376 went up to $54,498 & then went down to $42,572 & then went up to $66,807)


ANSWER FOR T214 is Up, Down, Even
(Because $200 went up to $500 and then went down to $100 and was that even with $100.
 

Attachments

  • Screen Shot 2020-06-28 at 11.01.01 AM.jpg
    Screen Shot 2020-06-28 at 11.01.01 AM.jpg
    116.2 KB · Views: 18

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Array confirm in T213, then fill down.

=TEXTJOIN(", ",1,INDEX(CHOOSE(SIGN(O213:Q213-P213:R213)+2,"DOWN","EVEN","UP"),N(IF({1},{3,2,1}))))
 
Upvote 0
Sorry, I re-arranged my cells- now I am now on cell T308.
 

Attachments

  • Screen Shot 2020-06-28 at 11.17.50 AM.jpg
    Screen Shot 2020-06-28 at 11.17.50 AM.jpg
    175.7 KB · Views: 14
Upvote 0
But, this is the result I got.... I simply copy and pasted it and it reads
=TEXTJOIN(", ",1,INDEX(CHOOSE(SIGN(O213:Q213-P213:R213)+2,"DOWN","EVEN","UP"),N(IF({1},{3,2,1}))))
 
Upvote 0
I even changed the formula to the row, and it did not work... I tried this...

=TEXTJOIN(", ",1,INDEX(CHOOSE(SIGN(O308:Q308-P308:R308)+2,"DOWN","EVEN","UP"),N(IF({1},{3,2,1}))))
 
Upvote 0
The obvious way
... longer but easier to understand o_O
=IF(R213<Q213,"UP",IF(R213>Q213,"DOWN","EVEN"))&","&IF(Q213<P213,"UP",IF(Q213>P213,"DOWN","EVEN"))&","&IF(P213<O213,"UP",IF(P213>O213,"DOWN","EVEN"))

Or if you want it for row 308
=IF(R308<Q308,"UP",IF(R308>Q308,"DOWN","EVEN"))&","&IF(Q308<P308,"UP",IF(Q308>P308,"DOWN","EVEN"))&","&IF(P308<O308,"UP",IF(P308>O308,"DOWN","EVEN"))
 
Upvote 0
Thanks Yongle. That is correct and I just followed you. It wasn't a space in between but I don't really care.
I typed and it said "UP,DOWN,UP" versus saying "UP, DOWN, UP"

=IF(R308<Q308,"UP",IF(R308>Q213,"DOWN","EVEN"))&","&IF(Q308<P308,"UP",IF(Q308>P308,"DOWN","EVEN"))&","&IF(P308<O308,"UP",IF(P308>O308,"DOWN","EVEN"))
 
Upvote 0
Put the space in yourself - it is not difficult to work it out
amend this bit twice
change "," to " , "
 
Upvote 0
I even changed the formula to the row, and it did not work... I tried this...

=TEXTJOIN(", ",1,INDEX(CHOOSE(SIGN(O308:Q308-P308:R308)+2,"DOWN","EVEN","UP"),N(IF({1},{3,2,1}))))
That's because you didn't confirm the array.
 
Upvote 0
That's because you didn't confirm the array.

or perhaps not using a recent version of Excel

TEXTJOIN funtion is only available in ...
Excel for Microsoft 365
Excel for Microsoft 365 for Mac
Excel for the web
Excel 2019
 
Upvote 0

Forum statistics

Threads
1,223,647
Messages
6,173,544
Members
452,520
Latest member
Pingaware

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