Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Oct 2001
    Location
    San Bernardino, California, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    entering a line break in a formula (97)

    Maybe it can't be done but I need to count some values in column A and have them displayed in a single cell. I can make it work. Here is my formula:

    =COUNTIF(A3:A27238,"A")&CHR(10)&COUNTIF(A3:A27238, "G")

    When I do this, it only give me a #NAME? for the result. Is there a way to get the result of:

    1215
    2535

    numbers are the count of A & G, respectively

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: entering a line break in a formula (97)

    Chr is a VBA function. The corresponding Excel worksheet function is CHAR (long live consistency!)

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: entering a line break in a formula (97)

    You must also tick the check box 'Wrap text' in the Alignment tab of Format | Cells...

  4. #4
    5 Star Lounger
    Join Date
    Oct 2001
    Location
    San Bernardino, California, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: entering a line break in a formula (97)

    Thanks. When I do this, the display shows the line break as a small box but no actual line break, per se.

  5. #5
    5 Star Lounger
    Join Date
    Oct 2001
    Location
    San Bernardino, California, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: entering a line break in a formula (97)

    Got it - thank you. I should have figured that out.

Posting Permissions

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