Hello,
I have a list of points. Each point has x and y coordinates. I also have cells. Each cell has 4 boundaries - left, right, top and bottom. I need to create a function for each cell that will run through the list of points and if it finds a point that it's x coordinate is bigger than left boundary and smaller than right boundary and y coordinate is bigger than bottom boundary and smaller than top boundary, function will put a "1" in a cell. If it runs through all the points and doesn't find such a point - function will put a "0" in a cell.
I will give an example:
func.GIF
I need to enter a function to cells G5 and G6. Function in cell G5 will run through x and y coordinates of point and will find a point #1 which x coordinate is indeed left<x<right and bottom<y<top, so G5 cell will receive a "1" value. On the other hand, function in cell G6 will run through the points' x and y coordinates and will not find any point that fits the requirements and G6 will receive a "0" value.
Can somebody help me with writing such a function?
Many thanks!
Georgiy.
Bookmarks