ndendrinos
Well-known Member
- Joined
- Jan 17, 2003
- Messages
- 1,694
I'm trying through a VBA IF code to do this:
……..A…….........B…….
54...............................
55..................49……..
56.................-50……..
57…….......……...-1………..
to that:
……..A…….........B…….
54...............................
55..................49……..
56.................-49……..
57…….......……....0………..
[B55] is a linked cell
[B56] is a number (not typed by hand but introduced through code)
[B57] is the sum of [B55:B56]
How can I get this result based on this logic:
For each negative cell in Row 57
Go up two rows/same column & copy value
Come down one row/same column and paste special Values *-1
(it is the business of the "*-1" that I need most help with if possible that is)
Many thanks
……..A…….........B…….
54...............................
55..................49……..
56.................-50……..
57…….......……...-1………..
to that:
……..A…….........B…….
54...............................
55..................49……..
56.................-49……..
57…….......……....0………..
[B55] is a linked cell
[B56] is a number (not typed by hand but introduced through code)
[B57] is the sum of [B55:B56]
How can I get this result based on this logic:
For each negative cell in Row 57
Go up two rows/same column & copy value
Come down one row/same column and paste special Values *-1
(it is the business of the "*-1" that I need most help with if possible that is)
Many thanks