![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 134
|
I am using these formulas and would like to know if there is any way of shortening them without affecting the result.
1st one: =IF(Sheet2!$M$9="N/A","Sorry Newhaven to Dieppe is not available.","Crossing By Route, "&INDEX(Crossing_Option,Sheet2!$E$27,1)&" "&TEXT(Sheet2!$O$9,"£0.00")) 2nd One: =IF(Sheet2!$M$9="N/A"," ",Sheet2!$E$25&" nights at, Hotel "&INDEX(Hotels_List,Sheet2!$E$23,1)&" "&TEXT(Sheet2!$O$8,"£0.00")) Thanks |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
|
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
Name your formulas *and* name the text strings. example: TEXT(Sheet2!$O$9,"£0.00")) could be given a name referenced in the formula. This would be in the "RefersTo" part. also, the following could be given short names Insert>Name>MyString1 Refers to: ="Sorry Newhaven to Dieppe is not available." Wherever you see that text, replace it with MyString1. Definitely would shorten the formulas above. Bye, Jay |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Posts: 134
|
Thanks I will give em a try.
Charlie |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|