difficult formula help

drobbins3006

New Member
Joined
May 24, 2011
Messages
7
sheet 1 contains
column a = list of numbers
column b may or may not be populated
column c = one of these values: Empty, ThisList, CreditList, or Unique.

sheet 2 contains
column a = list of numbers

if b1 is unpopulated c1= "Empty" regardless of what is in a1

if a1 is duplicated in column a, and b1 is populated, c1 = "ThisList"

if a1 is found in sheet 2 column a, and b1 is populated, c1 = "CreditList"

if a1 is unique in column a, not found in sheet 2 column a, and b1 is populated, c1 = "Unique"

I have tried to figure out a formula, but will use any solution available.

Thanks to anyone who is willing to help.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Maybe, in cell C1 and fill down:
=IF(LEN(B1)>0,IF(COUNTIF($A:$A,A1)>1,"ThisList",IF(COUNTIF(Sheet2!$A:$A,A1)>=1,"CreditList","Unique")),"Empty")
 
Upvote 0
"ThisList" and "Empty" work like they should, however "Unique" and CreditList do not.

Thanks for giving it a shot, if you think of something else please post it.
 
Upvote 0
Can you post an example of the data in Sheet 1 Columns A and B and Sheet 2 Column A for the case where you're not getting the expected result?
 
Upvote 0
Change the portion highlighted in red to the name of your sheet 2:

=IF(LEN(B1)>0,IF(COUNTIF($A:$A,A1)>1,"ThisList",IF(COUNTIF(Sheet2!$A:$A,A1)>=1,"CreditList","Unique")),"Empty")
 
Upvote 0
Also, if that doesn't work, try enclosing the name in single quotes. Like this:

=IF(LEN(B1)>0,IF(COUNTIF($A:$A,A1)>1,"ThisList",IF(COUNTIF('Sheet2'!$A:$A,A1)>=1,"CreditList","Unique")),"Empty")
 
Upvote 0
is there a difference in how this would work between 2007 and 2002 versions? It seems to work fine on 2007 spreadsheet (home) but doesnt work in when I move it to 2002 version (work) spreadsheet.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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
Back
Top