google sheet two criteria

josvill2010

New Member
Joined
Jun 1, 2011
Messages
40
Office Version
  1. 365
Hi, I have this formula that works well to bring the data from EAST but I also would like to bring the data from WEST.
I want to avoid bringing North, South.
What do I need to do to the formula to get it working to include WEST and EAST?

This is the formula
=filter(importrange("Google Sheets: Sign-in", "Spend !A:U"),index(importrange("Google Sheets: Sign-in", "Spend!A:U"),0,1)="EAST")
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Maybe
Excel Formula:
=filter(importrange("Google Sheets: Sign-in", "Spend !A:U"),(index(importrange("Google Sheets: Sign-in", "Spend!A:U"),0,1)="EAST")+(index(importrange("Google Sheets: Sign-in", "Spend!A:U"),0,1)="West"))
 
Upvote 0
Maybe
Excel Formula:
=filter(importrange("Google Sheets: Sign-in", "Spend !A:U"),(index(importrange("Google Sheets: Sign-in", "Spend!A:U"),0,1)="EAST")+(index(importrange("Google Sheets: Sign-in", "Spend!A:U"),0,1)="West"))
it gives an error @ Formula parse error. It keeps adding two parenthesis after "West")"))
I tried with +(index) and +index. The only difference is an extra )))
+index(importrange(https:"...", "Spend!A:U"),0,1)="West")"))
 
Upvote 0
In that case you need to share your file, without that I cannot help any further.
 
Upvote 0
please share your sheet so this can be reviewed
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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