Simple text behind a worksheet formula with quotes.

grid

Board Regular
Joined
Dec 4, 2009
Messages
54
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

:)
 

Some videos you may like

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try

=""""&Sheet2!E43&".csv"""&" " &""""&Sheet2!E43&"2.csv"""
 

grid

Board Regular
Joined
Dec 4, 2009
Messages
54
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

:)
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,216
Office Version
  1. 365
Platform
  1. Windows
grid

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

grid

Board Regular
Joined
Dec 4, 2009
Messages
54

ADVERTISEMENT

I only need 1x to retrieve text from Sheet2


Regards,

grid

:)
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,216
Office Version
  1. 365
Platform
  1. Windows
grid

The formula Peter posted only has one cell reference, just as your's had.:)
 

grid

Board Regular
Joined
Dec 4, 2009
Messages
54

ADVERTISEMENT

But it will get a value from E43 again. I did not need that twice :)


Regards,

grid

:)
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,216
Office Version
  1. 365
Platform
  1. Windows
No it won't.:unsure:

It only has one cell reference - Sheet2!E43.

Or am I missing something?:)
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
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)
 

grid

Board Regular
Joined
Dec 4, 2009
Messages
54
Thank you for the alternative. The question is solved :)


Regards,

grid

:)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,224
Messages
5,594,915
Members
413,952
Latest member
JGer

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
Top