Page 1 of 2 12 LastLast
Results 1 to 16 of 19

Thread: Excel help

  1. #1
    Formerly known as Andehh Andeh13's Avatar
    Join Date
    Oct 2005
    Location
    Northampton
    Posts
    3,353
    Thanks
    855
    Thanked
    257 times in 152 posts
    • Andeh13's system
      • Motherboard:
      • Gigabyte GA-P35
      • CPU:
      • Intel Q6600
      • Memory:
      • 4gb Corsair XMS2 800mhz
      • Storage:
      • 1 x 250gb Western Digital AAKS, 2 x 500gb Western Digital AAKS, 1TB WD Caviar Green
      • Graphics card(s):
      • BFG Geforce 8800GTS 512mb
      • PSU:
      • Corsair HX520
      • Case:
      • Antec 900
      • Operating System:
      • Windows 7 64bit
      • Monitor(s):
      • Samsung 24" & Sony 17"
      • Internet:
      • Virgin 10mb... hate them!

    Excel help

    I have a lot of data regarding a machine crushing test. The distance the crusher moved has been recorded as a negative figure, because it moves down. The problem is it is screwing up my graphs on excel. Is there anyway to create a script to change all negative values in an excel spreadsheet (1000s+ data) from negative to positive?

    thanks guys

  2. #2
    Pork & Beans Powerup Phage's Avatar
    Join Date
    May 2009
    Location
    Kent
    Posts
    6,260
    Thanks
    1,618
    Thanked
    608 times in 518 posts
    • Phage's system
      • Motherboard:
      • Asus Crosshair VIII
      • CPU:
      • 3800x
      • Memory:
      • 16Gb @ 3600Mhz
      • Storage:
      • Samsung 960 512Gb + 2Tb Samsung 860
      • Graphics card(s):
      • EVGA 1080ti
      • PSU:
      • BeQuiet 850w
      • Case:
      • Fractal Define 7
      • Operating System:
      • W10 64
      • Monitor(s):
      • Iiyama GB3461WQSU-B1

    Re: Excel help

    Copy, paste special, multiply by -1 good enough ?
    Society's to blame,
    Or possibly Atari.

  3. Received thanks from:

    Andeh13 (07-04-2010)

  4. #3
    Formerly known as Andehh Andeh13's Avatar
    Join Date
    Oct 2005
    Location
    Northampton
    Posts
    3,353
    Thanks
    855
    Thanked
    257 times in 152 posts
    • Andeh13's system
      • Motherboard:
      • Gigabyte GA-P35
      • CPU:
      • Intel Q6600
      • Memory:
      • 4gb Corsair XMS2 800mhz
      • Storage:
      • 1 x 250gb Western Digital AAKS, 2 x 500gb Western Digital AAKS, 1TB WD Caviar Green
      • Graphics card(s):
      • BFG Geforce 8800GTS 512mb
      • PSU:
      • Corsair HX520
      • Case:
      • Antec 900
      • Operating System:
      • Windows 7 64bit
      • Monitor(s):
      • Samsung 24" & Sony 17"
      • Internet:
      • Virgin 10mb... hate them!

    Re: Excel help

    I think that will change all the positive values to negative though, I want everything to be positive. Thanks

  5. #4
    unapologetic apologist
    Join Date
    Nov 2005
    Location
    UK
    Posts
    1,954
    Thanks
    363
    Thanked
    275 times in 146 posts

    Re: Excel help

    Quote Originally Posted by Phage View Post
    Copy, paste special, multiply by -1 good enough ?
    to use that method, would have to only calculate the negs, otherwise would invert the positive values

    my method is to use =ABS(cell ref) then copy all the results and PASTE SPECIAL/VALUES over the originals.
    One can never stop saying Thank You

  6. Received thanks from:

    Andeh13 (07-04-2010)

  7. #5
    Welcome to stampytown! Salazaar's Avatar
    Join Date
    Dec 2004
    Location
    Oxford-ish
    Posts
    4,459
    Thanks
    505
    Thanked
    353 times in 254 posts
    • Salazaar's system
      • Motherboard:
      • Asrock B450m Steel Legend
      • CPU:
      • Ryzen 5 3600
      • Graphics card(s):
      • 5700 XT

    Re: Excel help

    You could use the ABS function.

    Code:
    =ABS()
    It'll return the absolute(i.e. positive) value of any cell.

    (Damn, beaten to it)
    ____
    (='.'=)
    (")_(")

  8. Received thanks from:

    Andeh13 (07-04-2010)

  9. #6
    Formerly known as Andehh Andeh13's Avatar
    Join Date
    Oct 2005
    Location
    Northampton
    Posts
    3,353
    Thanks
    855
    Thanked
    257 times in 152 posts
    • Andeh13's system
      • Motherboard:
      • Gigabyte GA-P35
      • CPU:
      • Intel Q6600
      • Memory:
      • 4gb Corsair XMS2 800mhz
      • Storage:
      • 1 x 250gb Western Digital AAKS, 2 x 500gb Western Digital AAKS, 1TB WD Caviar Green
      • Graphics card(s):
      • BFG Geforce 8800GTS 512mb
      • PSU:
      • Corsair HX520
      • Case:
      • Antec 900
      • Operating System:
      • Windows 7 64bit
      • Monitor(s):
      • Samsung 24" & Sony 17"
      • Internet:
      • Virgin 10mb... hate them!

    Re: Excel help

    I am useless with excel so excuse my questioning!

    I have 15 columns of data, some 6000 values long, (which each consist of a extension (mm) and load (N) column). I have plotted all of these onto a graph, each one forming a small segment of the overall curve. Will using the =ABS() function mean I have to re do the final graph (consist of all 15 columns of data) or can it be done and letting Excel just update the curve?

    thanks again guys

  10. #7
    now with added engagement ring (tm)
    Join Date
    Dec 2009
    Posts
    47
    Thanks
    1
    Thanked
    2 times in 2 posts

    Re: Excel help

    I think you can just refresh the data by right clicking on a graph and then clicking refresh. But it's been a few years since i've had to produce a graph in excel so could be wrong.

  11. Received thanks from:

    Andeh13 (07-04-2010)

  12. #8
    Huge Member Brucelles's Avatar
    Join Date
    Mar 2007
    Location
    Carcassonne
    Posts
    1,756
    Thanks
    56
    Thanked
    203 times in 101 posts
    • Brucelles's system
      • Motherboard:
      • Gigabyte GA-F2A78M-D3H
      • CPU:
      • AMD A8-6600K APU
      • Memory:
      • 16Gb DDR4 800
      • Storage:
      • 1Tb Samsung, 320 Gb no name I can recall, 500Gb Sandisk SDD
      • Graphics card(s):
      • PNY - XLR8 GeForce 8800GTS
      • PSU:
      • 550W Corsair
      • Case:
      • Zalman
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Samsung S27C590H
      • Internet:
      • Orange Livebox Wireless ADSL - Sucks something rotten, and SFR Neuf box. Sucks less.

    Re: Excel help

    Using Fuddam's method you should be OK.

    Whatever, try it. You can always revert to the saved version. (You do have a saved version, don't you?)

    (Thanks Evilmunky)
    Eagles may soar, but weasels never get sucked into jet intakes.

  13. Received thanks from:

    Andeh13 (07-04-2010)

  14. #9
    Formerly known as Andehh Andeh13's Avatar
    Join Date
    Oct 2005
    Location
    Northampton
    Posts
    3,353
    Thanks
    855
    Thanked
    257 times in 152 posts
    • Andeh13's system
      • Motherboard:
      • Gigabyte GA-P35
      • CPU:
      • Intel Q6600
      • Memory:
      • 4gb Corsair XMS2 800mhz
      • Storage:
      • 1 x 250gb Western Digital AAKS, 2 x 500gb Western Digital AAKS, 1TB WD Caviar Green
      • Graphics card(s):
      • BFG Geforce 8800GTS 512mb
      • PSU:
      • Corsair HX520
      • Case:
      • Antec 900
      • Operating System:
      • Windows 7 64bit
      • Monitor(s):
      • Samsung 24" & Sony 17"
      • Internet:
      • Virgin 10mb... hate them!

    Re: Excel help

    Bloody stupid program! Cant seem to figure it out.

    It is a lot of data so what im doing is going =ABS(seleted-everything) then hitting enter? but it doesn't seem to like that

  15. #10
    unapologetic apologist
    Join Date
    Nov 2005
    Location
    UK
    Posts
    1,954
    Thanks
    363
    Thanked
    275 times in 146 posts

    Re: Excel help

    create the =ABS() calculation for each of the original cells, ie in a neighbouring 6 columns.

    eg if using column A already, in an empty column alongside, create =ABS(A1) and then drag the corner down so all the A values are done. This will give you the numbers you require.

    Then copy all those new values, and paste them OVER the A values, and select PASTE VALUES from the smart tag that pops up (if using recent version of Excel), or paste using PASTE SPECIAL/VALUES ONLY - this replaces the originals with the new ones

    Your graph will update automatically
    One can never stop saying Thank You

  16. Received thanks from:

    Andeh13 (07-04-2010)

  17. #11
    Formerly known as Andehh Andeh13's Avatar
    Join Date
    Oct 2005
    Location
    Northampton
    Posts
    3,353
    Thanks
    855
    Thanked
    257 times in 152 posts
    • Andeh13's system
      • Motherboard:
      • Gigabyte GA-P35
      • CPU:
      • Intel Q6600
      • Memory:
      • 4gb Corsair XMS2 800mhz
      • Storage:
      • 1 x 250gb Western Digital AAKS, 2 x 500gb Western Digital AAKS, 1TB WD Caviar Green
      • Graphics card(s):
      • BFG Geforce 8800GTS 512mb
      • PSU:
      • Corsair HX520
      • Case:
      • Antec 900
      • Operating System:
      • Windows 7 64bit
      • Monitor(s):
      • Samsung 24" & Sony 17"
      • Internet:
      • Virgin 10mb... hate them!

    Re: Excel help

    Thank you Fuddam! Only problem is I have no columns alongside the original columns so i'm guessing this cocks everything up slightly? This could be a long evening for me!

  18. #12
    unapologetic apologist
    Join Date
    Nov 2005
    Location
    UK
    Posts
    1,954
    Thanks
    363
    Thanked
    275 times in 146 posts

    Re: Excel help

    you could create the new columns anywhere - eg if using columns A to F, then create your new data in H - M (left a space for clarity), or another worksheet or even another file.

    create the calculations, copy & paste results over originals, ta-dah!

    One can never stop saying Thank You

  19. Received thanks from:

    Andeh13 (07-04-2010)

  20. #13
    Mostly Me Lucio's Avatar
    Join Date
    Mar 2007
    Location
    Tring
    Posts
    5,163
    Thanks
    443
    Thanked
    448 times in 351 posts
    • Lucio's system
      • Motherboard:
      • Gigabyte GA-970A-UD3P
      • CPU:
      • AMD FX-6350 with Cooler Master Seldon 240
      • Memory:
      • 2x4GB Corsair DDR3 Vengeance
      • Storage:
      • 128GB Toshiba, 2.5" SSD, 1TB WD Blue WD10EZEX, 500GB Seagate Baracuda 7200.11
      • Graphics card(s):
      • Sapphire R9 270X 4GB
      • PSU:
      • 600W Silverstone Strider SST-ST60F
      • Case:
      • Cooler Master HAF XB
      • Operating System:
      • Windows 8.1 64Bit
      • Monitor(s):
      • Samsung 2032BW, 1680 x 1050
      • Internet:
      • 16Mb Plusnet

    Re: Excel help

    Alternatively, copy the columns to a new set, in the original columns replace it with =ABS(cellref) refering back to where you've copied the data. Then you don't have to faff around with copy/pasting

    (\___/) (\___/) (\___/) (\___/) (\___/) (\___/) (\___/)
    (='.'=) (='.'=) (='.'=) (='.'=) (='.'=) (='.'=) (='.'=)
    (")_(") (")_(") (")_(") (")_(") (")_(") (")_(") (")_(")


    This is bunny and friends. He is fed up waiting for everyone to help him out, and decided to help himself instead!

  21. Received thanks from:

    Andeh13 (07-04-2010)

  22. #14
    Huge Member Brucelles's Avatar
    Join Date
    Mar 2007
    Location
    Carcassonne
    Posts
    1,756
    Thanks
    56
    Thanked
    203 times in 101 posts
    • Brucelles's system
      • Motherboard:
      • Gigabyte GA-F2A78M-D3H
      • CPU:
      • AMD A8-6600K APU
      • Memory:
      • 16Gb DDR4 800
      • Storage:
      • 1Tb Samsung, 320 Gb no name I can recall, 500Gb Sandisk SDD
      • Graphics card(s):
      • PNY - XLR8 GeForce 8800GTS
      • PSU:
      • 550W Corsair
      • Case:
      • Zalman
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Samsung S27C590H
      • Internet:
      • Orange Livebox Wireless ADSL - Sucks something rotten, and SFR Neuf box. Sucks less.

    Re: Excel help

    But then he would have to recreate the graph, or copy paste from the new set to the old set.

    Sadly, I am out of time, or I would suggest you just email it to me and I could have sent it back a few minutes later. And no-one else here has the time or skill either.

    (Thanks Evilmunky)
    Eagles may soar, but weasels never get sucked into jet intakes.

  23. Received thanks from:

    Andeh13 (07-04-2010)

  24. #15
    Formerly known as Andehh Andeh13's Avatar
    Join Date
    Oct 2005
    Location
    Northampton
    Posts
    3,353
    Thanks
    855
    Thanked
    257 times in 152 posts
    • Andeh13's system
      • Motherboard:
      • Gigabyte GA-P35
      • CPU:
      • Intel Q6600
      • Memory:
      • 4gb Corsair XMS2 800mhz
      • Storage:
      • 1 x 250gb Western Digital AAKS, 2 x 500gb Western Digital AAKS, 1TB WD Caviar Green
      • Graphics card(s):
      • BFG Geforce 8800GTS 512mb
      • PSU:
      • Corsair HX520
      • Case:
      • Antec 900
      • Operating System:
      • Windows 7 64bit
      • Monitor(s):
      • Samsung 24" & Sony 17"
      • Internet:
      • Virgin 10mb... hate them!

    Re: Excel help

    Brucelles, if the offer still stands I have to do it with a second set of data. This set is 36 sets of data(each set= 3 columns), of the 3 columns there 2 negative columns which need changing to positive! It is a lot of Data, and currently I am going to have to go through 72 columns and change the =ABS(column) like I did before.

    That being said, I have not graphed this set of data, so anyway how all I need is to change it from negative to positive. if someone has any other advice that could do this a bit quicker then 1 column at a time I would be forever in your debt!

  25. #16
    Senior Member
    Join Date
    Oct 2009
    Posts
    269
    Thanks
    45
    Thanked
    30 times in 26 posts
    • cookie365's system
      • Motherboard:
      • Asus H87M Plus
      • CPU:
      • i3 4340
      • Memory:
      • 2x Kingston HyperX 4Gb
      • Storage:
      • 250Gb Samsung SSD 840 EVO + Seagate 1TB + WD Green 2TB
      • Graphics card(s):
      • Whatever comes with the i3
      • PSU:
      • bequiet StraightPower 600
      • Case:
      • Aquacool Dead Silence
      • Operating System:
      • W10
      • Monitor(s):
      • Rectangular
      • Internet:
      • Cable

    Re: Excel help

    How complicated is the data series reference in the chart itself?

    If it's not too complex I would

    1. create a blank worksheet
    2. assuming the top left cell in the chart is OriginalSheet!C3 set NewSheet!C3 to be =ABS(OriginalSheet!C3)
    3. copy and paste to the bottom right cell in the new sheet
    4. change the data series references manually in the chart from OriginalSheet! to NewSheet!

    That way you don't break any of the formulas that reference the original data.

  26. Received thanks from:

    Andeh13 (08-04-2010)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel Vlookup not working (sort of)
    By piggeh in forum Help! Quick Relief From Tech Headaches
    Replies: 9
    Last Post: 03-09-2010, 04:35 PM
  2. Excel help (Conditional Formatting)
    By Workaholic in forum Software
    Replies: 3
    Last Post: 04-02-2008, 01:31 AM
  3. .NET Reading Multiple Excel Files
    By Shadow_101 in forum Software
    Replies: 5
    Last Post: 23-11-2007, 03:22 PM
  4. Excel + Database + Automated
    By Kezzer in forum Software
    Replies: 4
    Last Post: 29-03-2007, 04:54 PM
  5. Replies: 6
    Last Post: 12-08-2005, 08:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •