changing a column of positive numbers to negative

Hi!

I am a newbie to numbers, and am working in Numbers 09. I have tried the other techniques that have been posted but can't make them work. In slow, easy to understand instructions 🙂 could someone please tell me how to change a column of numbers (they are in column E) to negative numbers so that i can do my banking spreadsheets. There are 995 rows in the column....


Thanks in advance!

iwork-OTHER, Mac OS X (10.6.8)

Posted on Feb 25, 2013 10:12 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 25, 2013 10:24 AM

Assuming the numbers in column E are not created by a formula,


  1. Add a new column to the right. It will be column F
  2. In column F in the first row that has data, put the formula =-E
  3. Select that cell.
  4. Copy
  5. Select the rest of the cells in column F where you want negative numbers
  6. Paste. The column should be full of negative numbers now.
  7. Select all the cells in column F that have your negative numbers.
  8. Copy
  9. Select the first cell in column E that has your positive numbers
  10. Paste Values (found in the Edit menu). This is not the same as the normal "Paste" command
  11. Delete the column you added in the first step.
33 replies

Apr 2, 2014 12:09 PM in response to SGIII

One of the things I like about scripts by SG is that they are usually a straight through ride, making for easy reading and understanding. While that's probably a result of "I'm pretty much a beginner," I'm finding it a useful feature for anyone interested in learning more about AppleScript.


Regards,

Barry

Apr 3, 2014 9:06 AM in response to makfai

Select from menu w/could be simpler.


Since an Automator Service containing an AppleScript is a "select from menu" I'm not sure how to interpret your remark. Think I'll sign off here too!


@Barry and @Ian, I'm delighted that my modest scripts are helping revive interest and shed some light on how AppleScript can enhance Numbers in practical ways. Judging from the latest update to iWork, Apple must be devoting significant resources to breathing new life into something once thought moribund. That's great for general users with occasional specialized needs. It's similar in power to Visual Basic macros for Excel but (for someone like me without a technical background) more accessible.


SG

Apr 4, 2014 3:38 AM in response to SGIII

Not sure what is so difficult to grasp if thread is followed.


1.I wanted to know how to convert positive/negative numbers.

2. I wondered if there was a feature already built into the drop-down menu.

3. It was explained to me that there was no built-in feature but an Applescript could be written.

4. Examples of script were helpfully provided.

5. I said that the contributions were very useful but as Numbers worked across various platforms - some of which (like Apple's own iPad) did not support AppleScript then it would useful if Apple built the feature into its existing drop-down menu as a standard feature.


Hope you now understand the conversation. I have made the suggestion to Apple.

Jun 7, 2017 7:27 AM in response to coremelt

Here's an updated script.


SG



property myMultiplier : -1

tell application "Numbers"

tell front document's active sheet

tell (first table whose class of selection range is range)

set selRange to selection range

repeat with c in selRange's cells

try

set c's value to (c's value) * myMultiplier

end try

end repeat

end tell

end tell

end tell

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

changing a column of positive numbers to negative

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.