IF (function) is TRUE, LIST the corresponding values

monicakp11

New Member
Joined
Jul 26, 2018
Messages
3
I currently have an excel sheet with 5 columns. The first 4 have data, the last column has the function:

=IF(AND(D2<b3,d2>C3),A3,"")

So if (TRUE) the value in column D is between the values in columns B and C it prints the corresponding value from column A to column D. If (FALSE) the function will print a blank.

What I would like to do is somehow get this function to iterate over the entirety of columns B and C, and whenever true, add the corresponding value from A to a list in that cell in column D.
However, from my knowledge excel cannot list multiple items in a single cell. So my thoughts were to possibly create a table that would list all the column A values that fit the requirements of the function for the value in column D.

I am open to solutions in excel directly or even using excel macro. Any help would be greatly appreciated!</b3,d2>
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Firstly, unless you have had typo, the formula supplied won't work !
Then...
how does this apply to the formula provided, B isn't involved in the function ??

the value in column D is between the values in columns B and C it prints the corresponding value from column A to column D. If (FALSE) the function will print a blank.
 
Upvote 0
Sorry, I'm not sure why my equation disappeared. It should be:

=IF(AND(D2<B3,D2>C3),A3,"")

"So if (TRUE) the value in column D is between the values in columns B and C it prints the corresponding value from column A to column D. If (FALSE) the function will print a blank."
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

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