+ Reply to Thread
Results 1 to 35 of 35

Automate a positive number

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Automate a positive number

    I have excel 2007 and use it for golf handicaps. The cells show a positive number for the handicaps. (IE; a negative 6 is shown as 6) We have one golfer that actually has a positive handicap. How can I show that number with a plus automatically and all of the others with nothing but the number? (IE; a positive number is shown as this +1) I'm sure I might need to use an IF statement to get this accomplished. I do have a practice file top send if needed.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Automate a positive number

    No good without a sample sheet CLEARLY showing WHAT you expect to see WHERE you expect to see it.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Automate a positive number

    You may try this number format

    "+"0;0;

    Regards.

  4. #4
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    35 33 39 36 41 38 35 38 34 35 10 41 39 80 35.5 -0.5 0

    OK, here's a sample of what I have. The 10 left most numbers are the golf scores. The next number is the number of scores they have for the calculations. The next number is the highest number not to be used to calculate the handicap. The next number is the 2nd highest number not used to calculate the handicap. The next number is those two numbers added together. The next number is the 10 scores added together minus the 2 highest scores divided by 8. The next number is the previous number minus 36. And the last number is what I want to show as a +1.

  5. #5
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    I did try the "+"0;0; and got a blank cell. But thanks for the info.

  6. #6
    Forum Contributor
    Join Date
    07-24-2023
    Location
    Como, Italy
    MS-Off Ver
    MSO 365 - Ver 2208
    Posts
    120

    Re: Automate a positive number

    Hi menem,

    If I understand the request, try this:

    +0;0;

    without double quotes and let us know.

    Bye

    P.S.: Positive Number Format2.JPG
    Last edited by maxpit; 09-17-2023 at 10:53 AM.
    Max
    let's compare ideas

  7. #7
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    I also tried this +0;0; and I still get a blank cell. But thanks for the info.

  8. #8
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    Can I send a sample file???? It does have all the formulas I use in it.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Automate a positive number

    Where's the Excel file (complete with any underlying formulae) with expected answers that I asked for?

  10. #10
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    I tried this in again and I did get a number 1 in the cell, which is what I want it to show, but it didn't show the plus sign.

  11. #11
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    I don't see a paper clip to attach a file with. How do I send it to you?

  12. #12
    Forum Contributor
    Join Date
    07-24-2023
    Location
    Como, Italy
    MS-Off Ver
    MSO 365 - Ver 2208
    Posts
    120

    Re: Automate a positive number

    I have inserted in post #6 the corresponding image

  13. #13
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    Thank you for the response, but Excel 2007 doesn't show Personalizations to use for formatting a cell.

  14. #14
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    I tried this in the Custom area for formatting the cell and I either get a blank cell, or I get a 1 but without the + sign.

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Automate a positive number

    Read the yellow banner (top) about sample sheets.

  16. #16
    Forum Contributor
    Join Date
    07-24-2023
    Location
    Como, Italy
    MS-Off Ver
    MSO 365 - Ver 2208
    Posts
    120

    Re: Automate a positive number

    perhaps in this format with ";" replaced by ","

    +0,0,

  17. #17
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    sample scores.xls

    Here is the file with all of the formulas I use.
    Attached Files Attached Files

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Automate a positive number

    If R1 is -0.5, S1 should be what?

    If R1 is 0.0, S1 should be what?

    If R1 is 0.5, S1 should be what?

  19. #19
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    If R1 is -0.5, S1 should be what? +1

    If R1 is 0.0, S1 should be what? 0

    If Ris is 0.5, S1 should be what? 1

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Automate a positive number

    Cheers. Clear.

  21. #21
    Forum Contributor
    Join Date
    07-24-2023
    Location
    Como, Italy
    MS-Off Ver
    MSO 365 - Ver 2208
    Posts
    120

    Re: Automate a positive number

    I have inserted the formatting in the file, check if it is correct
    Attached Files Attached Files

  22. #22
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,342

    Re: Automate a positive number

    Custom format of

    +0 works OK for me.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  23. #23
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    What I received has cells A thru Q with the plus sign and cells R and S have just the number. I need cell S to show a plus sign IF cell R has a negative number in it.

  24. #24
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    John, I only need the cell to show a plus sign if cell R shows a negative sign. But thank you for the response.

  25. #25
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    Golf is a game of opposites, if you want the ball to go higher, you hit down on it, if you want the ball to go left, you hit it with a right swing path and so on. Hence, the golf scores are the same, if you are a great golfer, you have a positive handicap, but if you play like I do with an 8 handicap, you show it as just a number. It is a negative number, but is only shown as a number. Thanks again for everyone's help with this.

  26. #26
    Forum Contributor
    Join Date
    07-24-2023
    Location
    Como, Italy
    MS-Off Ver
    MSO 365 - Ver 2208
    Posts
    120

    Re: Automate a positive number

    I have reversed the attribution of the sign : correct 0;+0 in the new attachment
    Attached Files Attached Files

  27. #27
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Automate a positive number

    Formula:
    =ROUNDUP(R1,0)*-1

    Custom Format:
    +#;General;General;

    see file (saved as xlsx, not as obsolete .xls format).
    Attached Files Attached Files

  28. #28
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    OK, great. I do have something that works. I have to change a few formulas around to make it work for al of the other scores too, but it does work correctly. Thanks again for everyones help with tihs. Around the world people are helping people with problems. Thanks again. I'll close the thread.

  29. #29
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    When I figure out how to close it.

  30. #30
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Automate a positive number

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  31. #31
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    I just did that to everyone's response. Thanks Glenn for informing of this added feature.

  32. #32
    Forum Contributor
    Join Date
    07-24-2023
    Location
    Como, Italy
    MS-Off Ver
    MSO 365 - Ver 2208
    Posts
    120

    Re: Automate a positive number

    Hi union865,

    Nice to have been helpful.

    Thanks for Rep.

  33. #33
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Automate a positive number

    Thanks. All your helpers deserve a bit of encouragement... whether they helped get you across the line, or not

  34. #34
    Registered User
    Join Date
    03-20-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Automate a positive number

    Which is why I gave all of them a good reputation. Thanks again to everyone for your help. Automation is the way I like to do things in big files in Excel.

  35. #35
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Automate a positive number

    Unfortunately, a significant number of posters grab their answers, sneak away and don't even say Thank You... to ANYONE.

    They must think we get paid for this!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IF formula to automate 'Isolate' in the 7 cells after a positive is entered
    By karataggert in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2022, 09:36 AM
  2. [SOLVED] Frown if Negative Number Smile if Positive Number
    By BillySpivy in forum Excel General
    Replies: 2
    Last Post: 07-01-2021, 08:31 PM
  3. [SOLVED] How to sum a positive and negative number so the total is positive
    By jminty95 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2017, 09:27 PM
  4. Replies: 11
    Last Post: 06-06-2017, 11:04 AM
  5. Replies: 3
    Last Post: 03-10-2016, 04:40 PM
  6. Replies: 9
    Last Post: 02-04-2016, 01:18 AM
  7. Replies: 2
    Last Post: 11-13-2008, 12:35 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1