formula for a cell within ranges defined by columns on different sheet

Kay11

New Member
Joined
Oct 27, 2015
Messages
1
Hi I am not a very experienced Excel user. I have an excel workbook (actually a Google Sheet) with data that I am using somewhat like an inventory database. I created a Google Form hoping that it would update my original sheet. However it adds to a new sheet (let's call that "Forms") with columns "Starting #" and "Ending #". Every time the Google form is submitted it adds another row under these columns.

I would like to compare each cell within one of the columns of my original sheet to see if it falls within any of the ranges as defined in "Forms" or is equal to the starting #. If the cell is within any of the ranges or is equal to any of the starting #s, I want a blank output, If not then I want the output to be the value of the cell. However I am not getting the correct output with the formula that I am using: =if(or(K3=Forms!D:D,Forms!D:D>=K3<=Forms!E:E),"",K3)

Below is what the Forms sheet looks like after 3 form submissions. Each row defines a range.

starting #ending #
10011004
10161019
1011

<tbody>
</tbody>

Here are two of the columns of my original sheet as it appears with results from my incorrect formula:(the correct outputs should be 1005 through to 1010 inclusive, 1012-1015 incl, and 1020-1024 incl. ANY HELP WOULD BE GREATLY APPRECIATED!
Column K being testedColumn with output from formula
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024

<colgroup><col style="px"width:" 100px"=""></colgroup><tbody>
</tbody>
1002
1003

<colgroup><col style="px"width:" 100px"=""></colgroup><tbody>
</tbody>

<tbody>
</tbody>

Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,215,692
Messages
6,126,227
Members
449,303
Latest member
grantrob

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