Lists and Variables?

Seenage

New Member
Joined
Oct 24, 2006
Messages
9
Hi, this is my first post, so please bear with me:

Here is what I need to do.

I have a List, displayed as a drop down list using Data-> Validation -> Lists.

Now, for my current formula, I need to check and see if 3 things ( in an array ) are true, and one of those 3 things is the data in that list.

What I'm looking for is a way so that I cycle through all the values in the list using just one statement.

Some pseudocode to help explain:

If Name = "Something" AND If Date = Date-2 AND If ArrayValue = Yes
THEN display a string of text
Else If Name = "Something Else" AND yatta yatta

So, my problem is that I can't make more than 7 nested if statements. What I WANT it to be is:

If Name = ValueInList AND If Date = Date-2 AND If ArrayValue = Yes
THEN display a string of text
ALSO goto next value
Else Display Nothing

Is this possible?

Thanks in Advance.

~Seen
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi

Are you wanting to do this with a formula or code?

What are the ranges involved?

What is date and arrayvalue.


Tony
 
Upvote 0
I want to do this with a formula.

Here is a mock setup of my data:

ColumnA B C D E
Name 1 Name 2 Phone # Date Call?


Now, those are the values that I have to work with.

Heres what I am trying to do:

I've got a way to compare the date with todays date (datedif function) and checking to see if column E = Yes or No is easy.

However, I want to check if the Name in Column A is a valid name (one that is in the List range). This range is being provided by another workbook (names.xls) . Is there a way to go through each name in that dynamic range?
 
Upvote 0
Hi

How about something like

=if(and(e5="yes",countif([names.xls]sheet1!namerange,a5)>0),"do if valid","")

You will have to complete the relevant ranges. Basically, if column E has a yes, and the count is >0 the name is in the valid list on names.xls, then do your processing.


HTH

Tony
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,772
Members
449,049
Latest member
greyangel23

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