isnumber search a list

JanetLight

New Member
Joined
May 16, 2016
Messages
1
I am using a spreadsheet with three columns
Col a: today I ate at mcdonalds
col b : 10.52
col c: =IF($D675="drink",$F675-$G675,IF($D675="burger king",$F675-$G675,
IF($D675="kfc",$F675-$G675,IF($D675="mcdonalds",$F675-$G675,
IF($D675="wendys",$F675-$G675,IF($D675="taco bell",$F675-$G675,
IF($D675="arbys",$F675-$G675,IF($D675="cams ham",$F675-$G675,
IF($D675="stewarts",$F675-$G675,
IF($D675="chinese",$F675-$G675,
IF($D675="giovannis",$F675-$G675,
IF($D675="ginos",$F675-$G675,
IF($D675="tudors",$F675-$G675,
IF($D675="olive garden",$F675-$G675,
IF($D675="tim hortons",$F675-$G675,
IF($D675="bob evans",$F675-$G675,
IF($D675="steak escape",$F675-$G675,
IF($D675="subway",$F675-$G675,
IF($D675="seven eleven",$F675-$G675,
IF($D675="sheetz",$F675-$G675,
IF($D675="golden corral",$F675-$G675,
IF($D675="******* barell",$F675-$G675,
IF($D675="sheetz",$F675-$G675,
IF($D675="ruby tuesday",$F675-$G675,
IF($D675="logans",$F675-$G675,
IF($D675="drinks",$F675-$G675,
IF(ISNUMBER(SEARCH("*food*",$D553)),$F675-$G675,
IF($D675="xxx",$F675-$G675,
IF($D675="xxx",$F675-$G675,
IF($D675="xxx",$F675-$G675,
IF($D675="xxx",$F675-$G675,
IF($D675="xxx",$F675-$G675,
IF($D675="xxx",$F675-$G675,
"")))))))))))))))))))))))))))))))))

This works and does the calculation I need. But in some cases the formula is excessively long. SO I was hoping to put the entire list of restaurants in a column, give it a range name, and use the name in my formula but it does not return anything.

Any suggestions?

Thank you all!
Janet
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Book1
ABCDE
422418Look up range
43Hans6peter
44wim
45sally
46armand
47joep
48hans
Blad25
Cell Formulas
RangeFormula
B43=IF(MATCH(A43,$E$43:$E$48,0)>1,A42-B42,"")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

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