ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If function..please help (https://www.excelbanter.com/excel-discussion-misc-queries/449472-if-function-please-help.html)

managingcrap

If function..please help
 
1 Attachment(s)
I have 1,2,3,4,5 for cells A2,B2,C2,D2, and E2. I'm trying to figure a function wherein the first cell on row 2 that contains a number will result in ABC for A1 and the rest (i.e. B1,C2,D2,and E2) will result in ZZZ.

See image for clearer explanation.

Thanks guys.

Claus Busch

If function..please help
 
Hi,

Am Fri, 8 Nov 2013 22:52:16 +0000 schrieb managingcrap:

I have 1,2,3,4,5 for cells A2,B2,C2,D2, and E2. I'm trying to figure a
function wherein the first cell on row 2 that contains a number will
result in ABC for A1 and the rest (i.e. B1,C2,D2,and E2) will result in
ZZZ.


in A1 try:
=IF(COUNTIF($A$2:A2,"0")=1,"ABC",IF(COUNTIF($A$2: A2,"0")1,"ZZZ",""))
and drag to the right


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


All times are GMT +1. The time now is 11:18 PM.

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