AND is WAY too long

jtidfold

New Member
Joined
Jan 17, 2008
Messages
43
Hello there:

I have a psychotically long "AND" formula in an "IF" formula that I would LOVE to shorten up. It's analyzing 10 cells and it's doing this on 1,800 rows so it's really killing my processing time lol

Here's what "AND" part is now: = IF ( AND (A1 = "VALUE", A2 = "VALUE", etc)

I tried shortening it to = IF ( A1:A10="VALUE") but it errored out on me.

Am I stuck by the limitations of the "AND" formula on this one or is there a shortcut?

As always, the help is much appreciated

Cheers
KD
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,115
Perhaps
=if(a1&a2="ValueValue",
but I'm not sure if that will be an improvement . . .
 

jtidfold

New Member
Joined
Jan 17, 2008
Messages
43
It might not be - I should've done this to begin with though so it's on me here.

Here's what I'm trying to analyze. I have to see if I can find a serial number in 6 lists, and if I can't I have to show that result. If its in any of the 6 lists, then I don't have to worry about it. The "AND" formula in column P is the killer for me.

Excel Workbook
ABCDEFGHIJKLMNOP
1Serial No"S" Serial NumberNo "S" Serial NumberOn List 1 with "S"On List 1 with No "S"On List 2 With "S"On List 2 With No "S"On List 3 with "S"On List 3 With No "S"On List 4 With "S"On List 4 With No "S"On List 5 With "S"On List 5 With No "S"On List 6 With "S"On List 6 With No "S"On any list (Y/N)?
2S123456789S123456789123456789NONONONONONONONOYESNONONOYES
Analysis
 

jtidfold

New Member
Joined
Jan 17, 2008
Messages
43
You guys are awesome - I always get the help I need here and it's MUCH appreciated.

I went with Gerald's only to avoid the array - I don't know how much it saves on the processing but every little bit helps.

Thanks again!!!
KD
 

Watch MrExcel Video

Forum statistics

Threads
1,123,149
Messages
5,600,010
Members
414,355
Latest member
Aruna Kallu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top