Problem with Text function within formula

Lee2791buck

New Member
Joined
Oct 6, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I'm having a brain problem trying to get a text function to work in a formula The formula is: =+"Drugname ("& K5 & ")" & "_" & TEXT(E5,”00000000”)

The idea is I will get a field populated like "Drugname (Brandname)_01234567". I need the text function to ensure that the number that is returned from e5 is added to my resultant string,

Basically a person will enter a brand name into field K5 and a number into E5 and the result is these concatonated into a string that then can be looked up in another spreadsheet, in this case the drugname is constant.

But it seems the Text wont work, dosent matter what I put into the e5 field.

I thought I'd done this before, thought it was simple but Im lost for ideas.

Any clues????

Thanks,

Lee.


 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi & welcome to MrExcel.
In what way doesn't it work?
 
Upvote 0
Sorry, I get a ?Name error, running the formula analysis says it works up to the text function
 
Upvote 0
I could be mistaken but it looks to me that you have the slanted quote marks account the text format it needs the straight ones
 
Upvote 0
I could be mistaken but it looks to me that you have the slanted quote marks account the text format it needs the straight ones

Really? I copied and pasted this from my useful formulae document, never had a problem. There double quotes ie shift 2. would it be single?
 
Upvote 0
No, they need to be double quotes but they should be like " and not ”
Just edit them in the cell & you should be ok.
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,301
Members
449,078
Latest member
nonnakkong

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