A day of formulae hell

excelsos

New Member
Joined
Feb 6, 2018
Messages
9
if(E2=California),Vlookup(D2,'CA Counties'!A1:C2330,2,"")

Ok - Today seems to be the day of mishaps.

so I have a spreadsheet with multiple tabs:
1 - Has California Counties.

I basically need to have it look up on Sheet 1 - California (If the state name= California), then I need it to look up the city name in the current sheet and then link to this sheet called CA Counties, adn return the name of the county
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,

I posted a solution for you in your other thread: https://www.mrexcel.com/forum/excel-questions/1050488-sos-not-working.html

The IF(OR formula in your OP can be simplified a bit like in D1 below(from your other thread), D2 might be what you need for your question in Post #7 from your other thread and here :


Excel 2010
D
10
2 
Sheet10
Cell Formulas
RangeFormula
D1=IF(OR(C5={"Dollar General","Family Dollar","******* Barrel","Reserved"}),R5,0)
D2=IF(E2="California",VLOOKUP(D2,'CA Counties'!A1:C2330,2),"")
 
Upvote 0
You should remove the ) after E2=California as that is closing the if statement I assume you want to return blank if E2 does not = california
Code:
=if(E2=California,Vlookup(D2,'CA Counties'!A1:C2330,2,0),"")
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,101
Members
449,205
Latest member
ralemanygarcia

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