Simple text behind a worksheet formula with quotes.

grid

Board Regular
Joined
Dec 4, 2009
Messages
56
Hello,

I use this formula: ="rename """&Sheet2!E43&".csv"""

This formula gives as result: rename "Input.csv"

But I would have as a result: "Input.csv" "Input2.csv"


"Input2.csv" does not come from another worksheet. So there is just "Input2.csv" behind the formula to be typed.

Does anyone know the formula here?


Thank you,

grid

:)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Thanks for the quick response. I have this now: =""""&Sheet2!E43&".csv"""&" " &"""Input2.csv"""

This works well. But perhaps it can be shorter since no 2nd time I refer to another range.

Thank you,

grid

:)
 
Upvote 0
grid

What do you mean by 'no 2nd time I refer to another range'?
 
Upvote 0
grid

The formula Peter posted only has one cell reference, just as your's had.:)
 
Upvote 0
But it will get a value from E43 again. I did not need that twice :)


Regards,

grid

:)
 
Upvote 0
No it won't.:unsure:

It only has one cell reference - Sheet2!E43.

Or am I missing something?:)
 
Upvote 0
Here's an alternative that avoids the need for multiple "s in the formula

=CHAR(34)&Sheet2!E43&".csv"&CHAR(34)&" "&CHAR(34)&"Input2.csv"&CHAR(34)
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,476
Members
448,967
Latest member
visheshkotha

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