Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
IntricateFool
 
Posts: n/a
Default Concatenate in a string

How would i go about combining this string?

=IF(B43=Medicaid_Medical!$A$2,COUNTA(Medicaid_Medi cal!$A$4:$A$50)/COUNTA(Medicaid_Medical!$A$4:$A$50),0)

I need all of the A's to change according to the column they are
representing. I have A - Z in a column that I would like to reference so
that when I drag down the letters change accordingly. I know the row #'s will
change without the $ signs when I drag down, but I need the column letters to
change as I go down...

When I try:

=IF(B43=Medicaid_Medical!"&I43&"$2,COUNTA(Medicaid _Medical!"&I43&"$4:"&I43&"$50)/COUNTA(Medicaid_Medical!"&I43&"$4:"&I43&"$50),0)

Replacing the A with the cell that has A in it, it does not work... Is there
another way to do this? Transpose, somehow?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj
 
Posts: n/a
Default Concatenate in a string

Check out the indirect and offset functions in help
(I assume you meant to use count if not counta in the denominater)
if not please change as needed.

=IF(B43=indirect("Medicaid_Medical!"&I43&"$2",COUN TA(offset(indirect("Medicaid_Medical!"&I43&"$4"),0 ,0,1,47)/COUNTIF(Medicaid_Medical!"&I43&"$4:"&I43&"$50),off set(indirect("Medicaid_Medical!"&I43&"$4"),0,0,1,4 7)

"IntricateFool" wrote:

How would i go about combining this string?

=IF(B43=Medicaid_Medical!$A$2,COUNTA(Medicaid_Medi cal!$A$4:$A$50)/COUNTA(Medicaid_Medical!$A$4:$A$50),0)

I need all of the A's to change according to the column they are
representing. I have A - Z in a column that I would like to reference so
that when I drag down the letters change accordingly. I know the row #'s will
change without the $ signs when I drag down, but I need the column letters to
change as I go down...

When I try:

=IF(B43=Medicaid_Medical!"&I43&"$2,COUNTA(Medicaid _Medical!"&I43&"$4:"&I43&"$50)/COUNTA(Medicaid_Medical!"&I43&"$4:"&I43&"$50),0)

Replacing the A with the cell that has A in it, it does not work... Is there
another way to do this? Transpose, somehow?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
IntricateFool
 
Posts: n/a
Default Concatenate in a string

I am trying to get a percent of the number of fields being referenced from
another worksheet, so counta is actually what I am trying to use. (
counta(columnC)/counta(totalplans) to get a percent of fields complete) I am
confused by how the ,0,0,1,47 came into the function? I really appreciate
your help with this

"bj" wrote:

Check out the indirect and offset functions in help
(I assume you meant to use count if not counta in the denominater)
if not please change as needed.

=IF(B43=indirect("Medicaid_Medical!"&I43&"$2",COUN TA(offset(indirect("Medicaid_Medical!"&I43&"$4"),0 ,0,1,47)/COUNTIF(Medicaid_Medical!"&I43&"$4:"&I43&"$50),off set(indirect("Medicaid_Medical!"&I43&"$4"),0,0,1,4 7)

"IntricateFool" wrote:

How would i go about combining this string?

=IF(B43=Medicaid_Medical!$A$2,COUNTA(Medicaid_Medi cal!$A$4:$A$50)/COUNTA(Medicaid_Medical!$A$4:$A$50),0)

I need all of the A's to change according to the column they are
representing. I have A - Z in a column that I would like to reference so
that when I drag down the letters change accordingly. I know the row #'s will
change without the $ signs when I drag down, but I need the column letters to
change as I go down...

When I try:

=IF(B43=Medicaid_Medical!"&I43&"$2,COUNTA(Medicaid _Medical!"&I43&"$4:"&I43&"$50)/COUNTA(Medicaid_Medical!"&I43&"$4:"&I43&"$50),0)

Replacing the A with the cell that has A in it, it does not work... Is there
another way to do this? Transpose, somehow?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj
 
Posts: n/a
Default Concatenate in a string

The ,0,0,1,47 makes the offset function use the range based on the referenced
cell and 46 cells to the right

the denominator factor in your equation
COUNTA(Medicaid_Medical!$A$4:$A$50)
will be the same as the numerator
COUNTA(Medicaid_Medical!$A$4:$A$50)

I missread your original request and screwed up my response also.

I now assume that the sheet in the numerator or the denominator is
incorrectly referenced.

=IF(B43=indirect("Medicaid_Medical!"&I43&"$2"),COU NTA(offset(indirect("Sheet1!"&I43&"$4"),0,0,1,47))/COUNTA(offset(indirect("Sheet2!"&I43&"$4"),0,0,1,4 7)),0)

"IntricateFool" wrote:

I am trying to get a percent of the number of fields being referenced from
another worksheet, so counta is actually what I am trying to use. (
counta(columnC)/counta(totalplans) to get a percent of fields complete) I am
confused by how the ,0,0,1,47 came into the function? I really appreciate
your help with this

"bj" wrote:

Check out the indirect and offset functions in help
(I assume you meant to use count if not counta in the denominater)
if not please change as needed.

=IF(B43=indirect("Medicaid_Medical!"&I43&"$2",COUN TA(offset(indirect("Medicaid_Medical!"&I43&"$4"),0 ,0,1,47)/COUNTIF(Medicaid_Medical!"&I43&"$4:"&I43&"$50),off set(indirect("Medicaid_Medical!"&I43&"$4"),0,0,1,4 7)

"IntricateFool" wrote:

How would i go about combining this string?

=IF(B43=Medicaid_Medical!$A$2,COUNTA(Medicaid_Medi cal!$A$4:$A$50)/COUNTA(Medicaid_Medical!$A$4:$A$50),0)

I need all of the A's to change according to the column they are
representing. I have A - Z in a column that I would like to reference so
that when I drag down the letters change accordingly. I know the row #'s will
change without the $ signs when I drag down, but I need the column letters to
change as I go down...

When I try:

=IF(B43=Medicaid_Medical!"&I43&"$2,COUNTA(Medicaid _Medical!"&I43&"$4:"&I43&"$50)/COUNTA(Medicaid_Medical!"&I43&"$4:"&I43&"$50),0)

Replacing the A with the cell that has A in it, it does not work... Is there
another way to do this? Transpose, somehow?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
IntricateFool
 
Posts: n/a
Default Concatenate in a string

After a little bit of playing around, I finally got it working....! Here is
what I did:

=IF(B44=INDIRECT("Medicaid_Medical!"&I44&"$2"),COU NTA(OFFSET(INDIRECT("Medicaid_Medical!"&I44&"$2"), 2,0,47,1))/COUNTA(States_Medical),0)

The 47 and 1 were reversed, and the "States_Medical" will always be the
denominator for the reference.

Thanks man, that was of much help!

"bj" wrote:

The ,0,0,1,47 makes the offset function use the range based on the referenced
cell and 46 cells to the right

the denominator factor in your equation
COUNTA(Medicaid_Medical!$A$4:$A$50)
will be the same as the numerator
COUNTA(Medicaid_Medical!$A$4:$A$50)

I missread your original request and screwed up my response also.

I now assume that the sheet in the numerator or the denominator is
incorrectly referenced.

=IF(B43=indirect("Medicaid_Medical!"&I43&"$2"),COU NTA(offset(indirect("Sheet1!"&I43&"$4"),0,0,1,47))/COUNTA(offset(indirect("Sheet2!"&I43&"$4"),0,0,1,4 7)),0)

"IntricateFool" wrote:

I am trying to get a percent of the number of fields being referenced from
another worksheet, so counta is actually what I am trying to use. (
counta(columnC)/counta(totalplans) to get a percent of fields complete) I am
confused by how the ,0,0,1,47 came into the function? I really appreciate
your help with this

"bj" wrote:

Check out the indirect and offset functions in help
(I assume you meant to use count if not counta in the denominater)
if not please change as needed.

=IF(B43=indirect("Medicaid_Medical!"&I43&"$2",COUN TA(offset(indirect("Medicaid_Medical!"&I43&"$4"),0 ,0,1,47)/COUNTIF(Medicaid_Medical!"&I43&"$4:"&I43&"$50),off set(indirect("Medicaid_Medical!"&I43&"$4"),0,0,1,4 7)

"IntricateFool" wrote:

How would i go about combining this string?

=IF(B43=Medicaid_Medical!$A$2,COUNTA(Medicaid_Medi cal!$A$4:$A$50)/COUNTA(Medicaid_Medical!$A$4:$A$50),0)

I need all of the A's to change according to the column they are
representing. I have A - Z in a column that I would like to reference so
that when I drag down the letters change accordingly. I know the row #'s will
change without the $ signs when I drag down, but I need the column letters to
change as I go down...

When I try:

=IF(B43=Medicaid_Medical!"&I43&"$2,COUNTA(Medicaid _Medical!"&I43&"$4:"&I43&"$50)/COUNTA(Medicaid_Medical!"&I43&"$4:"&I43&"$50),0)

Replacing the A with the cell that has A in it, it does not work... Is there
another way to do this? Transpose, somehow?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
use concatenate function to put carrage returns in a text string dabblingandconfused Excel Worksheet Functions 4 August 15th 06 04:58 PM
how do i concatenate a string and cell formula and use a comma? bob alou Excel Worksheet Functions 2 February 24th 06 03:30 PM
superscript in part of a string when using concatenate Ged2 Excel Discussion (Misc queries) 1 August 23rd 05 02:47 PM
concatenate a text string if two different cells contain the sam. Linda G Excel Worksheet Functions 5 January 17th 05 07:53 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 03:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"