Query formula greyed out

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
237
Office Version
  1. 2021
Platform
  1. Windows
Hi,
I am using the following formula
=FILTER(Data!$GN$70:$GN$340,$H$70:$H$340=Data!$GD70,"")
The destInation range is J70:J340 each even numbered row has the formula, each odd numbered row is blank.
For some weird reason the formula is repeated in the following odd numbered rows 87 89 91 93 95 147 157 163 169 171 195 but it is greyed out.
Wondering what the reason might be and if there is a way to correct it.
Cheers,
Dave.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Pretty hard to be sure without any sample data. Generally a greyed out formula means the cell is part of a spill range. For example, if you select the formula in J86 (where I presume the formula is not greyed out?) do you see a blue outline around (at least) J86 and J87?
 
Upvote 0
Hi Peter,
Had the same thought as you mentioned re without data, I could send a mini sheet if you think that would help, I did not do originally as the formula is referencing another worksheet and wasn't sure if it would be helpful.
The answer to your question is yes.
Weird though that it is not consistent through the range.
Thanks for the reply.
Cheers,
Dave.
 
Upvote 0
That just means that some of the formulas are only returning one row, and others 2, which means you have multiple matches for some values in column DG on Data, and not others.
 
Upvote 0
Wondering ... if there is a way to correct it.
If the second row of those situations is always blank, or you only want the first value anyway, you could change your formula to the following to stop that spill into the next row
Excel Formula:
=INDEX(FILTER(Data!$GN$70:$GN$340,$H$70:$H$340=Data!$GD70,""),1)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,178
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