ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Concatenate formula needs a fix (https://www.excelbanter.com/excel-discussion-misc-queries/235097-concatenate-formula-needs-fix.html)

Vic

Concatenate formula needs a fix
 
I am applying the following formula to concatenate 2 counters, one from this
sheet and another one from another sheet. This formula is not working. Can
someone please show me how to fix it?
=CONCATENATE(COUNTIF(A10:A500,"USA")," / ",COUNTIF('DFs-Sym'!C90:C1000,"USA"))
I need to see something like this == 38 / 105
I am doing this because I can't split the cell, but I need 2 different
counters for each country.
Thank you.

Mike H

Concatenate formula needs a fix
 
Hi,

Your formula is fine and you don't explain what 'not working' is. I suspect
you have a data problem with (maybe) rogue spaces so try this

=CONCATENATE(COUNTIF(A10:A500,"*USA*")," /
",COUNTIF('DFs-Sym'!C90:C1000,"*USA*"))

Note that will fail if a cell in your range contains something like medUSA
which will be counted so if it doesn't work look to cleaning your data.

Mike

"Vic" wrote:

I am applying the following formula to concatenate 2 counters, one from this
sheet and another one from another sheet. This formula is not working. Can
someone please show me how to fix it?
=CONCATENATE(COUNTIF(A10:A500,"USA")," / ",COUNTIF('DFs-Sym'!C90:C1000,"USA"))
I need to see something like this == 38 / 105
I am doing this because I can't split the cell, but I need 2 different
counters for each country.
Thank you.


Vic

Concatenate formula needs a fix
 
I still get #VALUE!

"Mike H" wrote:

Hi,

Your formula is fine and you don't explain what 'not working' is. I suspect
you have a data problem with (maybe) rogue spaces so try this

=CONCATENATE(COUNTIF(A10:A500,"*USA*")," /
",COUNTIF('DFs-Sym'!C90:C1000,"*USA*"))

Note that will fail if a cell in your range contains something like medUSA
which will be counted so if it doesn't work look to cleaning your data.

Mike

"Vic" wrote:

I am applying the following formula to concatenate 2 counters, one from this
sheet and another one from another sheet. This formula is not working. Can
someone please show me how to fix it?
=CONCATENATE(COUNTIF(A10:A500,"USA")," / ",COUNTIF('DFs-Sym'!C90:C1000,"USA"))
I need to see something like this == 38 / 105
I am doing this because I can't split the cell, but I need 2 different
counters for each country.
Thank you.


Tel

Concatenate formula needs a fix
 
Hi Vic,

I'm no expert and I'm sure others will shoot me down if I'm wrong but try
this:

In one spare cell (say A1) enter the formula

=COUNTIF(A10:A500,"USA")

in a second spare cell (say A2) enter the formula

=COUNTIF('DFs-Sym'!C90:C1000,"USA"))

In a third (your target cell) enter

=A1&"/"&A2

Hey presto you've got it. It might be long winded but you get the result.

I often hide cells using white text on a white background then lock the cell
out if you don't want others to see it.

Regards

Tel


"Vic" wrote:

I am applying the following formula to concatenate 2 counters, one from this
sheet and another one from another sheet. This formula is not working. Can
someone please show me how to fix it?
=CONCATENATE(COUNTIF(A10:A500,"USA")," / ",COUNTIF('DFs-Sym'!C90:C1000,"USA"))
I need to see something like this == 38 / 105
I am doing this because I can't split the cell, but I need 2 different
counters for each country.
Thank you.


Mike H

Concatenate formula needs a fix
 
Hi,

The only way I can get a #VALUE! error is by not having a sheet called
"DFs-Sym"

Check the spelling of your sheet name and ensure you don't have any spaces
at the ends.

Mike

"Vic" wrote:

I still get #VALUE!

"Mike H" wrote:

Hi,

Your formula is fine and you don't explain what 'not working' is. I suspect
you have a data problem with (maybe) rogue spaces so try this

=CONCATENATE(COUNTIF(A10:A500,"*USA*")," /
",COUNTIF('DFs-Sym'!C90:C1000,"*USA*"))

Note that will fail if a cell in your range contains something like medUSA
which will be counted so if it doesn't work look to cleaning your data.

Mike

"Vic" wrote:

I am applying the following formula to concatenate 2 counters, one from this
sheet and another one from another sheet. This formula is not working. Can
someone please show me how to fix it?
=CONCATENATE(COUNTIF(A10:A500,"USA")," / ",COUNTIF('DFs-Sym'!C90:C1000,"USA"))
I need to see something like this == 38 / 105
I am doing this because I can't split the cell, but I need 2 different
counters for each country.
Thank you.


Tel

Concatenate formula needs a fix
 
or you could do:

=COUNTIF(A10:A500,"USA")&"/"&COUNTIF('DFs-Sym'!C90:C1000,"USA")

Tel


"Vic" wrote:

I am applying the following formula to concatenate 2 counters, one from this
sheet and another one from another sheet. This formula is not working. Can
someone please show me how to fix it?
=CONCATENATE(COUNTIF(A10:A500,"USA")," / ",COUNTIF('DFs-Sym'!C90:C1000,"USA"))
I need to see something like this == 38 / 105
I am doing this because I can't split the cell, but I need 2 different
counters for each country.
Thank you.


Vic

Concatenate formula needs a fix
 
Mike,
You are right! It is DFS-Sym. What was I thinking?
Thank you.

"Mike H" wrote:

Hi,

The only way I can get a #VALUE! error is by not having a sheet called
"DFs-Sym"

Check the spelling of your sheet name and ensure you don't have any spaces
at the ends.

Mike

"Vic" wrote:

I still get #VALUE!

"Mike H" wrote:

Hi,

Your formula is fine and you don't explain what 'not working' is. I suspect
you have a data problem with (maybe) rogue spaces so try this

=CONCATENATE(COUNTIF(A10:A500,"*USA*")," /
",COUNTIF('DFs-Sym'!C90:C1000,"*USA*"))

Note that will fail if a cell in your range contains something like medUSA
which will be counted so if it doesn't work look to cleaning your data.

Mike

"Vic" wrote:

I am applying the following formula to concatenate 2 counters, one from this
sheet and another one from another sheet. This formula is not working. Can
someone please show me how to fix it?
=CONCATENATE(COUNTIF(A10:A500,"USA")," / ",COUNTIF('DFs-Sym'!C90:C1000,"USA"))
I need to see something like this == 38 / 105
I am doing this because I can't split the cell, but I need 2 different
counters for each country.
Thank you.


Mike H

Concatenate formula needs a fix
 
Glad I could help and thanks for the feedback

"Vic" wrote:

Mike,
You are right! It is DFS-Sym. What was I thinking?
Thank you.

"Mike H" wrote:

Hi,

The only way I can get a #VALUE! error is by not having a sheet called
"DFs-Sym"

Check the spelling of your sheet name and ensure you don't have any spaces
at the ends.

Mike

"Vic" wrote:

I still get #VALUE!

"Mike H" wrote:

Hi,

Your formula is fine and you don't explain what 'not working' is. I suspect
you have a data problem with (maybe) rogue spaces so try this

=CONCATENATE(COUNTIF(A10:A500,"*USA*")," /
",COUNTIF('DFs-Sym'!C90:C1000,"*USA*"))

Note that will fail if a cell in your range contains something like medUSA
which will be counted so if it doesn't work look to cleaning your data.

Mike

"Vic" wrote:

I am applying the following formula to concatenate 2 counters, one from this
sheet and another one from another sheet. This formula is not working. Can
someone please show me how to fix it?
=CONCATENATE(COUNTIF(A10:A500,"USA")," / ",COUNTIF('DFs-Sym'!C90:C1000,"USA"))
I need to see something like this == 38 / 105
I am doing this because I can't split the cell, but I need 2 different
counters for each country.
Thank you.



All times are GMT +1. The time now is 06:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com