+ Reply to Thread
Results 1 to 7 of 7

Adding a comma to numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    09-01-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    28

    Adding a comma to numbers

    Hi all, I have this code I'm using on the main sheet which links to another sheet, but I can't seem to get the numbers to add a comma if it's more than 1,000 etc. Any help would be great. Thanks.

    =INDEX(Lives!B2:B110,MATCH(MAX(Lives!C2:C110),Lives!C2:C110,FALSE),)&"Top live show"&MAX(Lives!C2:C110)
    Last edited by AliGW; 04-14-2020 at 11:05 AM. Reason: Irrelevant section of title removed.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,569

    Re: Adding a comma to numbers!

    You need to format the cells that the formula is in. Cell formatting is on the Home ribbon.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-01-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    28

    Re: Adding a comma to numbers!

    Thank you, I did already try that without any luck, also tried a custom 'format cell' without any joy, but thank you for replying.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,569

    Re: Adding a comma to numbers!

    Try changing the formula to this:

    =VALUE(INDEX(Lives!B2:B110,MATCH(MAX(Lives!C2:C110),Lives!C2:C110,FALSE),)&"Top live show"&MAX(Lives!C2:C110))

    If this doesn't work with your number formatting, then attach a sample workbook - you must be doing something wrong. Instructions at the top of the page.

  5. #5
    Registered User
    Join Date
    09-01-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    28

    Re: Adding a comma to numbers

    I've attached the simple sheet, I've added the corrected date format as well(thanks for the answer and support).
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,391

    Re: Adding a comma to numbers

    Seems to me that it is the same solution as the other thread -- use the TEXT() function to add number formatting to a number that you are joining into a larger text string.

    =TEXT(date formula) & TEXT(number,"#,##0")

    If you are unfamiliar with the number format codes that go into the second argument of the TEXT() function: https://support.microsoft.com/en-us/...rs=en-us&ad=us
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Registered User
    Join Date
    09-01-2017
    Location
    London
    MS-Off Ver
    2016
    Posts
    28

    Re: Adding a comma to numbers

    Thanks, that was my first point of call, I just keep getting error messages. I'll get there lol

+ 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. Comma delimited numbers with space after comma
    By Cicada in forum Excel General
    Replies: 5
    Last Post: 04-23-2015, 09:32 AM
  2. [SOLVED] Compare two cells with comma delimited numbers and display the numbers that are NOT duplic
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2014, 02:22 PM
  3. adding a comma at the end of cells
    By jspinx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-27-2010, 06:49 PM
  4. Adding comma delimited numbers in a cell
    By Cicada in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2009, 01:23 PM
  5. Adding a comma after an int field
    By Bennie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-12-2006, 10:45 PM
  6. [SOLVED] Display numbers in a userform txtfield as numbers with a comma
    By TimT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2005, 07:00 PM
  7. [SOLVED] Count comma separated numbers, numbers in a range with dash, not t
    By Mahendra in forum Excel General
    Replies: 0
    Last Post: 08-08-2005, 01:05 PM

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