If Cell = "XXX" Then clear all other cells formula

S

SCrowley

Hi,

I recently posted an IF ARRAY question and the solution worked beautifully

=HLOOKUP("A VIP",$AQ2:$BE2,1,FALSE)

Now I need to refine my data and I'm trying to avoid looking at 3000 records
to eliminate clear contents of 4 out of 5 columns if they meet a criteria.

Columns BE:BI possibly have data, which is a relationship type, in which I
only want 1 type assigned. Currently there are multiple relationship types
assigned. "B Customer" takes precedent over any other option. So, I need the
formula to look at BE2:BI2 see if

If cells $BE2:$BI2
Contain “A VIP†AND/OR “B Customer†AND/OR “D Lead Sourceâ€
THEN
Only return “B Customerâ€

Is this an array formula or simpler than that?
 
P

Peo Sjoblom

=IF(SUM(COUNTIF(BE:BI,{"A VIP","B Customer","D Lead Source"}))>0,"B
Customer","Nothing found")

--


Regards,


Peo Sjoblom
 
S

SCrowley

Thank you. Perfect solution for me.
--
Thank you,

scrowley(AT)littleonline.com


Peo Sjoblom said:
=IF(SUM(COUNTIF(BE:BI,{"A VIP","B Customer","D Lead Source"}))>0,"B
Customer","Nothing found")

--


Regards,


Peo Sjoblom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top