J
Jeff Mattero
Hello:
I am wondering if someone her might be able to help me
with this problem.
I have a huge spreadsheet (33000 rows), which was sent to
me from a broker, on which I have to do some detailed
calculations. Columns are labeled P/S (for purchase or
sale), Date, # Shares, Price per share, total. Since the
number of shares is always listed as a positive number, I
am having a problem. I would like PURCHASES of stock to be
a POSITIVE number, and SALES of stock to be a NEGATIVE
number. (All of the data I have is for the trading in one
stock). This is a very simple problem, which I normally
fix by use of the IF WORKSHEET FUNCTION, and, in words, I
say "If the P/S column is a "P", use the number of shares
as stated, otherwise, use the inverse of the number of
shares (IF A2="P",C2,-(C2)). Pretty simple right???
However, when I do this on the worksheet that was
electronically sent to me, ALL results are coming out as
negative numbers. To try to figure this out, I changed the
above formula to read IF A2="P",C2,"xxx", and all results
are xxx. This suggests to me that A2 does not = P.
However, I am looking at the cell A2, and it DOES show P.
I have copied this formula down the entire sheet, and, in
all cases, I get the xxx, which is telling me that none of
the entries in column are P. However, as stated before,
the only entries in that column are P for purchases, and S
for sales. Is there some way that I can see EXACTLY what
is in the cell? I thought I simply had to click on it,
but, apparantly, I am wrong about that, as the result of
the formula seems to prove. Am I missing something here?
I have re-created a small spreadsheet, where I have typed
in the data manually, done the calculation and it works
perfectly. However, on the spreadsheet the broker sent me,
the SAME formula does not work the same way. Any ideas on
how to check/fix this problem?
While I am far from a computer expert, I know this type of
elementary calculation in Excel, and have used it many
times previously.
If A2 = spaceP rather than P, would that make the formula
work as I am describing???
If I am not making myself clear, please e-mail me and I
will send you a small sample of the spreadsheet. My e-mail
is listed below, but please remove the NOSPAM on both
sides of the @ sign. Thanks.
Jeff Mattero
(e-mail address removed)
I am wondering if someone her might be able to help me
with this problem.
I have a huge spreadsheet (33000 rows), which was sent to
me from a broker, on which I have to do some detailed
calculations. Columns are labeled P/S (for purchase or
sale), Date, # Shares, Price per share, total. Since the
number of shares is always listed as a positive number, I
am having a problem. I would like PURCHASES of stock to be
a POSITIVE number, and SALES of stock to be a NEGATIVE
number. (All of the data I have is for the trading in one
stock). This is a very simple problem, which I normally
fix by use of the IF WORKSHEET FUNCTION, and, in words, I
say "If the P/S column is a "P", use the number of shares
as stated, otherwise, use the inverse of the number of
shares (IF A2="P",C2,-(C2)). Pretty simple right???
However, when I do this on the worksheet that was
electronically sent to me, ALL results are coming out as
negative numbers. To try to figure this out, I changed the
above formula to read IF A2="P",C2,"xxx", and all results
are xxx. This suggests to me that A2 does not = P.
However, I am looking at the cell A2, and it DOES show P.
I have copied this formula down the entire sheet, and, in
all cases, I get the xxx, which is telling me that none of
the entries in column are P. However, as stated before,
the only entries in that column are P for purchases, and S
for sales. Is there some way that I can see EXACTLY what
is in the cell? I thought I simply had to click on it,
but, apparantly, I am wrong about that, as the result of
the formula seems to prove. Am I missing something here?
I have re-created a small spreadsheet, where I have typed
in the data manually, done the calculation and it works
perfectly. However, on the spreadsheet the broker sent me,
the SAME formula does not work the same way. Any ideas on
how to check/fix this problem?
While I am far from a computer expert, I know this type of
elementary calculation in Excel, and have used it many
times previously.
If A2 = spaceP rather than P, would that make the formula
work as I am describing???
If I am not making myself clear, please e-mail me and I
will send you a small sample of the spreadsheet. My e-mail
is listed below, but please remove the NOSPAM on both
sides of the @ sign. Thanks.
Jeff Mattero
(e-mail address removed)