Forums

General Betting

Welcome to Live View – Take the tour to learn more
Start Tour
There is currently 1 person viewing this thread.
Glengarry Glen Ross
10 Jun 11 10:16
Joined:
Date Joined: 08 Aug 08
| Topic/replies: 1,271 | Blogger: Glengarry Glen Ross's blog
In my downloaded p/l column I would like to have any minus figures highlighted in red bold.

tia
GGR
Pause Switch to Standard View Excel help please
Show More
Loading...
Report raspberrybottom June 10, 2011 10:35 AM BST
Enrol on a college computer course, halfwit.... Mischief
Report Equimine.co.uk June 10, 2011 11:25 AM BST
On the Excel Home Page, click on Conditional Formatting.
You want the Highlight Cell Rules, it is pretty straightforward from there.
This is for Excel 2007, other versions will be very similar.
Report ror June 10, 2011 11:50 AM BST
There's a better way than that without using conditional formatting. If you press ctrl+1, then in advanced formatting settings there are some with red negatives.

Or in custom format:


1. Park on the cell , say B5
2. press Ctrl+1 to see the format
3. select Custom
4. select #,##0;[Red]-#,##

This was from the first google result for 'excel red negative' so you should ask yourself what you're doing wrong on the internets not to find it.
Report lmlac June 10, 2011 12:23 PM BST
Or create a custom button in your toolbar with this code so you only need to click the button:

sub highlight_in_red
this_row = 3
Do Until Cells(this_row, 4) = ""
    If Cells(this_row, 4) < 0 Then Cells(this_row, 4).Font.ColorIndex = 3
    this_row = this_row + 1
Loop
end sub
Report ror June 10, 2011 1:07 PM BST
WTF? Code? That's a really **** way to do it.

You don't need any fancy customisation for this, it's a simple option in the ctrl+1 format box.

Format > Numbers; Then format code [$£-809]#,##0.00;[RED]-[$£-809]#,##0.00, or just select currency and tick the "negative numbers red" box.

WTF?!
Report lmlac June 10, 2011 7:54 PM BST
You only have to write the code once. Then for each P and L download it's just one click instead of all that rigmarole.
Report ror June 11, 2011 3:15 AM BST
There's no rigmarole. And your code doesn't solve it, it has to be run each time, and if it's a calculated field it won't automatically change based on the result.

Formatting a square so it's red if negative is just a freaking option in the formatting menu. IT's how it should be done. To use code for that purpose is a horrible nasty hack.
Report Glengarry Glen Ross June 11, 2011 8:28 AM BST
ror
10 Jun 11 11:50
Joined:
23 Oct 08
| Topic/replies: 3,078 | Blogger: ror's blog
There's a better way than that without using conditional formatting. If you press ctrl+1, then in advanced formatting settings there are some with red negatives.

Or in custom format:


1. Park on the cell , say B5
2. press Ctrl+1 to see the format
3. select Custom
4. select #,##0;[Red]-#,##

This was from the first google result for 'excel red negative' so you should ask yourself what you're doing wrong on the internets not to find it.


thanks for your replys, tried the above before I posted but it does not seem to work.
what I want to do is click on the p/l column and format the whole column at once to highlight the losing trades.
Then look back at those trades to see if I can tighten my edge.

thanks again
GGR
Report raspberrybottom June 11, 2011 9:14 AM BST
Tighten your what? Could you get any tighter?

Laugh
Report Glengarry Glen Ross June 11, 2011 9:29 AM BST
morning rasp, you throwing any darts today?

maybe this week you may hit the board with one of them.

50/50 system doing well (send more moneyLaugh), trebled a small bank over 3 months.
going live soon!!
Report Glengarry Glen Ross June 11, 2011 9:29 AM BST
morning rasp, you throwing any darts today?

maybe this week you may hit the board with one of them.

50/50 system doing well (send more moneyLaugh), trebled a small bank over 3 months.
going live soon!!
Report raspberrybottom June 11, 2011 9:31 AM BST
Morning. Take a look at the darts, son.... Blush

You could only dream of stuff like that.... Cool
Report Glengarry Glen Ross June 11, 2011 9:34 AM BST
if you are making so much money, why are you still living with yer mam.

don't choke on your porridge goldilocks!!!!
Report raspberrybottom June 11, 2011 9:41 AM BST
You're a fine one to talk of fairy tales, system boy....Laugh
Post Your Reply
<CTRL+Enter> to submit
Please login to post a reply.

Wonder

Instance ID: 13539
www.betfair.com