+ Reply to Thread
Results 1 to 42 of 42

write a function to determine if cells have names

  1. #1
    Forum Contributor
    Join Date
    05-08-2005
    Location
    Australia
    MS-Off Ver
    excel 2019
    Posts
    112

    write a function to determine if cells have names

    I am doing a roster and would like to know how to do a function to make sure cells certain cells have names present
    eg. cells a1 : a5 should have names present - is there a function in say a6 that if all cells (a1:a5) have a name present a6 = true, and if any cell has no name present a6 = false (or any other text)
    I want this to make sure all cells are filled in with a name
    andrewm

  2. #2
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  3. #3
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  4. #4
    Forum Contributor
    Join Date
    05-08-2005
    Location
    Australia
    MS-Off Ver
    excel 2019
    Posts
    112
    thanks,

    tried counta - started with false when no cells had names, changed to true when all cells had an entry, but when I deleted a cells contents the counta result stayed with true - any ideas

    andrewm

  5. #5
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  6. #6
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

  7. #7
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  8. #8
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  9. #9
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  10. #10
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

  11. #11
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  12. #12
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

  13. #13
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  14. #14
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  15. #15
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  16. #16
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  17. #17
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  18. #18
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

  19. #19
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  20. #20
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

  21. #21
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  22. #22
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  23. #23
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

  24. #24
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  25. #25
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  26. #26
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  27. #27
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  28. #28
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

  29. #29
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  30. #30
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  31. #31
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

  32. #32
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  33. #33
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  34. #34
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  35. #35
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

  36. #36
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  37. #37
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  38. #38
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  39. #39
    bj
    Guest

    Re: write a function to determine if cells have names

    When you deleted the data did you use a space or something?
    a lot of functions treat a space as an entry.


    i would recomend rather than Counta
    Counta counts functions concluding ""

    =if(countblank(A1:A5)=0,"true","false")


    "andrewm" wrote:

    >
    > thanks,
    >
    > tried counta - started with false when no cells had names, changed to
    > true when all cells had an entry, but when I deleted a cells contents
    > the counta result stayed with true - any ideas
    >
    > andrewm
    >
    >
    > --
    > andrewm
    > ------------------------------------------------------------------------
    > andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
    > View this thread: http://www.excelforum.com/showthread...hreadid=377637
    >
    >


  40. #40
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    Correction: Data validation cannot "ensure" that a1:a5 contains names; but
    could be used to restrict possible entries to TEXT, and also to certain minimum
    length of text.

    For example, the validation formula:

    =and(ISTEXT(A1),len(a1)>2)

    would restrict entries to be text and be at least three characters long.


    --ron

  41. #41
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 03:40:04 -0500, andrewm
    <[email protected]> wrote:

    >
    >I am doing a roster and would like to know how to do a function to make
    >sure cells certain cells have names present
    >eg. cells a1 : a5 should have names present - is there a function in
    >say a6 that if all cells (a1:a5) have a name present a6 = true, and if
    >any cell has no name present a6 = false (or any other text)
    >I want this to make sure all cells are filled in with a name
    >andrewm


    If the cells can only contain names or be blank, something you can ensure using
    data validation, then

    =COUNTA(A1:A5) = 5

    should do what you request.
    --ron

  42. #42
    Ron Rosenfeld
    Guest

    Re: write a function to determine if cells have names

    On Thu, 9 Jun 2005 07:03:06 -0500, andrewm
    <[email protected]> wrote:

    >thanks,
    >
    >tried counta - started with false when no cells had names, changed to
    >true when all cells had an entry, but when I deleted a cells contents
    >the counta result stayed with true - any ideas


    1. Did you delete using the <delete> key, or did you type in a <space>?

    2. Did you set up the data validation for A1:A5 as I suggested?


    --ron

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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