Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gtb gtb is offline
external usenet poster
 
Posts: 6
Default Checking Column Entries

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Checking Column Entries

This approach, using conditional formatting, might work for you. Select the
entire column (column A, for example), then select Format Conditional
Formatiing (in Excel 2003). Change the dropdown box to "Formula Is". In the
adjoining text box, enter this formula:

=AND(LEN(A1)0,A1<MODE($A$1:$A$60000))

Click the Format button and select the formatting you want to highlight the
cells which are not the same as all the others. Click OK, then OK.

MODE doesn't accept whole-column arguments.

Hope this helps,

Hutch

"gtb" wrote:

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Checking Column Entries

Hi,

=COUNTIF(A:A,A1)=COUNT(A:A)

Assume that A1 is the first non-blank cell. If not

=COUNTIF(A1:A24,MAX(A1:A24))=COUNT(A1:A24)

--
Thanks,
Shane Devenshire


"gtb" wrote:

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gtb gtb is offline
external usenet poster
 
Posts: 6
Default Checking Column Entries

Say A1:A4 are user input cells, start out as blanks. Say user inputs value
4.05 in any three of the cells and leaves the fourth blank. Check if all
values in the 4 cells are the same (not carrying about blanks or location
within the 4 cells). If true return value 4.05 in cell B1, if all values in
A1:A4 are not the same (disregarding blanks) return "Text" in B1????

"gtb" wrote:

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Checking Column Entries

Hi,

I'm not going to ask why you would return "Text" if three cells all contain
numbers, but different number.

The formula you want is

=IF(COUNTIF(G1:G12,MAX(G1:G12))=COUNT(G1:G12),MAX( G1:G12),"text")

I continued using the same range as in the previous example.

If this helps, please click the Yes button.
--
Thanks,
Shane Devenshire


"gtb" wrote:

Say A1:A4 are user input cells, start out as blanks. Say user inputs value
4.05 in any three of the cells and leaves the fourth blank. Check if all
values in the 4 cells are the same (not carrying about blanks or location
within the 4 cells). If true return value 4.05 in cell B1, if all values in
A1:A4 are not the same (disregarding blanks) return "Text" in B1????

"gtb" wrote:

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Checking Column Entries

Hi,

Here is a shorter way:

=IF(MAX(G1:G7)=MIN(G1:G7),MAX(G1:G7),"Text")

--
Thanks,
Shane Devenshire


"gtb" wrote:

Say A1:A4 are user input cells, start out as blanks. Say user inputs value
4.05 in any three of the cells and leaves the fourth blank. Check if all
values in the 4 cells are the same (not carrying about blanks or location
within the 4 cells). If true return value 4.05 in cell B1, if all values in
A1:A4 are not the same (disregarding blanks) return "Text" in B1????

"gtb" wrote:

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gtb gtb is offline
external usenet poster
 
Posts: 6
Default Checking Column Entries

Thanks Shane, works great. Can Excel also pick up the formating for
Max(G1:G7) say the values are in inches and you want the inches " to show up
in the returned value.

"ShaneDevenshire" wrote:

Hi,

Here is a shorter way:

=IF(MAX(G1:G7)=MIN(G1:G7),MAX(G1:G7),"Text")

--
Thanks,
Shane Devenshire


"gtb" wrote:

Say A1:A4 are user input cells, start out as blanks. Say user inputs value
4.05 in any three of the cells and leaves the fourth blank. Check if all
values in the 4 cells are the same (not carrying about blanks or location
within the 4 cells). If true return value 4.05 in cell B1, if all values in
A1:A4 are not the same (disregarding blanks) return "Text" in B1????

"gtb" wrote:

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Checking Column Entries

Hi,

Sometimes Excel automatically picks up the formatting of the referenced
cells, however, those cells must be formatted before you enter the formula.

--
Thanks,
Shane Devenshire


"gtb" wrote:

Thanks Shane, works great. Can Excel also pick up the formating for
Max(G1:G7) say the values are in inches and you want the inches " to show up
in the returned value.

"ShaneDevenshire" wrote:

Hi,

Here is a shorter way:

=IF(MAX(G1:G7)=MIN(G1:G7),MAX(G1:G7),"Text")

--
Thanks,
Shane Devenshire


"gtb" wrote:

Say A1:A4 are user input cells, start out as blanks. Say user inputs value
4.05 in any three of the cells and leaves the fourth blank. Check if all
values in the 4 cells are the same (not carrying about blanks or location
within the 4 cells). If true return value 4.05 in cell B1, if all values in
A1:A4 are not the same (disregarding blanks) return "Text" in B1????

"gtb" wrote:

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gtb gtb is offline
external usenet poster
 
Posts: 6
Default Checking Column Entries

Sorry Shane, I should have posted a more concise question.
I'm using the "concastonate?" function (&) to group several cells into one.
If a cell is formated says as 0.00"''", that is two single quotations wiithin
a set of double quotations (or maybe 0.00/'' would work also) to give the
number the inch designation, and I use & to bring that cell and others into
one, I am loosing the " from the number I brought in.

"ShaneDevenshire" wrote:

Hi,

Sometimes Excel automatically picks up the formatting of the referenced
cells, however, those cells must be formatted before you enter the formula.

--
Thanks,
Shane Devenshire


"gtb" wrote:

Thanks Shane, works great. Can Excel also pick up the formating for
Max(G1:G7) say the values are in inches and you want the inches " to show up
in the returned value.

"ShaneDevenshire" wrote:

Hi,

Here is a shorter way:

=IF(MAX(G1:G7)=MIN(G1:G7),MAX(G1:G7),"Text")

--
Thanks,
Shane Devenshire


"gtb" wrote:

Say A1:A4 are user input cells, start out as blanks. Say user inputs value
4.05 in any three of the cells and leaves the fourth blank. Check if all
values in the 4 cells are the same (not carrying about blanks or location
within the 4 cells). If true return value 4.05 in cell B1, if all values in
A1:A4 are not the same (disregarding blanks) return "Text" in B1????

"gtb" wrote:

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gtb gtb is offline
external usenet poster
 
Posts: 6
Default Checking Column Entries



"gtb" wrote:

Sorry Shane, I should have posted a more concise question.
I'm using the "concastonate?" function (&) to group several cells into one.
If a cell is formated says as 0.00"''", that is two single quotations wiithin
a set of double quotations (or maybe 0.00/'' would work also) to give the
number the inch designation, and I use & to bring that cell and others into
one, I am loosing the " from the number I brought in.



I've figured out my last issue of formatting entries brought together with
the & operator. Since I had two cases, one being an actual number, and the
other condition being a text entry of "V" I used an if statement, and then
the text(value,valueformat) if the reference was not a "V" but a number.

Thanks so much for all your help

"ShaneDevenshire" wrote:

Hi,

Sometimes Excel automatically picks up the formatting of the referenced
cells, however, those cells must be formatted before you enter the formula.

--
Thanks,
Shane Devenshire


"gtb" wrote:

Thanks Shane, works great. Can Excel also pick up the formating for
Max(G1:G7) say the values are in inches and you want the inches " to show up
in the returned value.

"ShaneDevenshire" wrote:

Hi,

Here is a shorter way:

=IF(MAX(G1:G7)=MIN(G1:G7),MAX(G1:G7),"Text")

--
Thanks,
Shane Devenshire


"gtb" wrote:

Say A1:A4 are user input cells, start out as blanks. Say user inputs value
4.05 in any three of the cells and leaves the fourth blank. Check if all
values in the 4 cells are the same (not carrying about blanks or location
within the 4 cells). If true return value 4.05 in cell B1, if all values in
A1:A4 are not the same (disregarding blanks) return "Text" in B1????

"gtb" wrote:

How would you check all values in a column, real numbers, to see if they are
all the same or if any differ. Not counting blanks?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking for specific entries in a column Frador Excel Discussion (Misc queries) 3 May 17th 08 02:47 AM
Macro for checking duplicate entries Ken[_2_] Excel Worksheet Functions 6 October 8th 07 12:17 PM
Checking entries against a column of data TonyR Excel Discussion (Misc queries) 1 May 31st 07 07:21 PM
Checking for double entries The Fool on the Hill Excel Discussion (Misc queries) 6 November 16th 06 12:07 PM
Checking for duplicate entries Daniel- Sydney Excel Discussion (Misc queries) 3 November 7th 06 09:16 AM


All times are GMT +1. The time now is 02:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"