google sheet | Query #REF!

josvill2010

New Member
Joined
Jun 1, 2011
Messages
40
Office Version
  1. 365
Hi,

I would like to get rid of the first #Ref! line that query is bringing.

The first line has the following formula
=query({SNC!A15:C;NAO!A15:C;ASH!A18:C; LDC!A15:C;HCO!A15:C;HIL!A15:C;ZCH!A15:C;ZHU!A15:C;ZGD!A15:C;ZAS!A15:C;ZAZ!A15:C;COL!A15:C}, "Select * where Col1 ='L1'")
It brings the error #REF!
The problem is only on the first line. It seems that for Column C it brings the cell just under C too ie
2001-CONSUMABLES PO
See below highlighted

SNCAverage Growth Rate#DIV/0!
SNC1NA
CurrencyUSDBuilding Count
Previous Period Invoicing
POSupplierTitleDescriptionRequestorNeed byAmountBilledUnbilledRun RateQ2'20Q3'20Q4'20Q1'21Q2'21Q3'21Q4'21Q1'22Q2'22
L0 SNCNON REPLENISHABLE MATERIALS$3,309$53,635$4,406$28,760$83,052$41,864$7,345$5,970$0
L1 SNC2001-CONSUMABLES1$0$2,500$0$3,309$21,400$4,406$12,841$31,658$29,271$3,765$5,970$0
POSupplierTitleDescriptionRequestorNeed byAmountBilledUnbilledRun RateQ2'20Q3'20Q4'20Q1'21Q2'21Q3'21Q4'21Q1'22Q2'22
$0$0$0$0$0$0$0$0$0$0


1656945417960.png
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Do you know of any reason as why the query formula would bring an extra space at the start?
L1 in A3 is move one space to the right and the same applies to B3, SNC has an extra space to the left
Any ideas welcome.
 
Upvote 0

Forum statistics

Threads
1,223,348
Messages
6,171,573
Members
452,411
Latest member
colpie

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