ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   comparing columns and returning max value (https://www.excelbanter.com/excel-discussion-misc-queries/114231-comparing-columns-returning-max-value.html)

[email protected]

comparing columns and returning max value
 
Hello,

I have 4 columns each with 250 rows

looks something like
A B C
D
Web URL Correct? URL CSU
? ? ? ?
Yes NA Yes Yes

I want to count the number of of ?'s in the cells in each column, then
compare this number in all columns and return the highest value.

No idea how to compare countif's though. or if this is even possible.

Suggestions greatly appreciated :-D

Clive


[email protected]

comparing columns and returning max value
 
hmm

this seems to have worked,

=MAX((COUNTIF(F2:F249,"?")),(COUNTIF(G2:G249,"?")) ,(COUNTIF(H2:H249,"?")),(COUNTIF(I2:I249,"?")),(CO UNTIF(J2:J249,"?")))

but is there an easier way of doing this at all? i.e. with a smaller
formula


Dallman Ross

comparing columns and returning max value
 
In . com,
spake thusly:

I have 4 columns each with 250 rows
looks something like [I fixed your table:]


A B C D
Web URL Correct? URL CSU
? ? ? ?
Yes NA Yes Yes

I want to count the number of of ?'s in the cells in each column,
then compare this number in all columns and return the highest
value.


How about, in Column E:

=COUNTIF(A2:D2,"?")

Drag down, then at bottom of Column E, put:

=MAX(A2:A249)

--
dman


All times are GMT +1. The time now is 06:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com