ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Change part of formula (https://www.excelbanter.com/excel-worksheet-functions/112039-change-part-formula.html)

[email protected]

Change part of formula
 
How can i change this formula

=(COUNT.IF(R!$D$4;"=*01)

to this

=(COUNT.IF(R!$D$4;"=*02)

I try find and replace but with no result.
The real formula is:

Count is contar and se is if in portuguese


=(CONTAR.SE(R!$D$4;"=*01*"))+(CONTAR.SE(R!$F$4;"=* 01*"))+(CONTAR.SE(R!$H$4;"=*01*"))+(CONTAR.SE(R!$J $4;"=*01*"))+(CONTAR.SE(R!$L$4;"=*01*"))+(CONTAR.S E(R!$N$4;"=*01*"))+(CONTAR.SE(R!$P$4;"=*01*"))+(CO NTAR.SE(R!$R$4;"=*01*"))+(CONTAR.SE(R!$T$4;"=*01*" ))+(CONTAR.SE(R!$V$4;"=*01*"))+(CONTAR.SE(R!$X$4;" =*01*"))+(CONTAR.SE(R!$Z$4;"=*01*"))+(CONTAR.SE(R! $AB$4;"=*01*"))+(CONTAR.SE(R!$AD$4;"=*01*"))+(CONT AR.SE(R!$AF$4;"=*01*"))+(CONTAR.SE(R!$AH$4;"=*01*" ))+(CONTAR.SE(R!$AJ$4;"=*01*"))+(CONTAR.SE(R!$AL$4 ;"=*01*"))+(CONTAR.SE(R!$AN$4;"=*01*"))+(CONTAR.SE (R!$AP$4;"=*01*"))+(CONTAR.SE(R!$AR$4;"=*01*"))+(C ONTAR.SE(R!$AT$4;"=*01*"))+(CONTAR.SE(R!$AV$4;"=*0 1*"))+(CONTAR.SE(R!$AX$4;"=*01*"))+(CONTAR.SE(R!$A Z$4;"=*01*"))+(CONTAR.SE(R!$BB$4;"=*01*"))+(CONTAR .SE(R!$BD$4;"=*01*"))+(CONTAR.SE(R!$BF$4;"=*01*")) +(CONTAR.SE(R!$BH$4;"=*01*"))+(CONTAR.SE(R!$BJ$4;" =*01*"))+(CONTAR.SE(R!$BL$4;"=*01*"))

Best regards


Biff

Change part of formula
 
Hi!

How can i change this formula


How about replacing that long formula with one that's more manageable?

A1 = 01

=SUMPRODUCT(--(MOD(COLUMN(D4:BL4),2)=0),--(ISNUMBER(SEARCH(A1,D4:BL4))))

You'll have to enter the 01 in A1 as TEXT by preformatting the cell as TEXT
or by preceding the entry with an apostrophe, '01.

Biff

wrote in message
ups.com...
How can i change this formula

=(COUNT.IF(R!$D$4;"=*01)

to this

=(COUNT.IF(R!$D$4;"=*02)

I try find and replace but with no result.
The real formula is:

Count is contar and se is if in portuguese


=(CONTAR.SE(R!$D$4;"=*01*"))+(CONTAR.SE(R!$F$4;"=* 01*"))+(CONTAR.SE(R!$H$4;"=*01*"))+(CONTAR.SE(R!$J $4;"=*01*"))+(CONTAR.SE(R!$L$4;"=*01*"))+(CONTAR.S E(R!$N$4;"=*01*"))+(CONTAR.SE(R!$P$4;"=*01*"))+(CO NTAR.SE(R!$R$4;"=*01*"))+(CONTAR.SE(R!$T$4;"=*01*" ))+(CONTAR.SE(R!$V$4;"=*01*"))+(CONTAR.SE(R!$X$4;" =*01*"))+(CONTAR.SE(R!$Z$4;"=*01*"))+(CONTAR.SE(R! $AB$4;"=*01*"))+(CONTAR.SE(R!$AD$4;"=*01*"))+(CONT AR.SE(R!$AF$4;"=*01*"))+(CONTAR.SE(R!$AH$4;"=*01*" ))+(CONTAR.SE(R!$AJ$4;"=*01*"))+(CONTAR.SE(R!$AL$4 ;"=*01*"))+(CONTAR.SE(R!$AN$4;"=*01*"))+(CONTAR.SE (R!$AP$4;"=*01*"))+(CONTAR.SE(R!$AR$4;"=*01*"))+(C ONTAR.SE(R!$AT$4;"=*01*"))+(CONTAR.SE(R!$AV$4;"=*0 1*"))+(CONTAR.SE(R!$AX$4;"=*01*"))+(CONTAR.SE(R!$A Z$4;"=*01*"))+(CONTAR.SE(R!$BB$4;"=*01*"))+(CONTAR .SE(R!$BD$4;"=*01*"))+(CONTAR.SE(R!$BF$4;"=*01*")) +(CONTAR.SE(R!$BH$4;"=*01*"))+(CONTAR.SE(R!$BJ$4;" =*01*"))+(CONTAR.SE(R!$BL$4;"=*01*"))

Best regards




JoaoCoutinho.net

Change part of formula
 
How i can apply that formula?

I did't understand!

Sorry!


Biff wrote:
Hi!

How can i change this formula


How about replacing that long formula with one that's more manageable?

A1 = 01

=SUMPRODUCT(--(MOD(COLUMN(D4:BL4),2)=0),--(ISNUMBER(SEARCH(A1,D4:BL4))))

You'll have to enter the 01 in A1 as TEXT by preformatting the cell as TEXT
or by preceding the entry with an apostrophe, '01.

Biff

wrote in message
ups.com...
How can i change this formula

=(COUNT.IF(R!$D$4;"=*01)

to this

=(COUNT.IF(R!$D$4;"=*02)

I try find and replace but with no result.
The real formula is:

Count is contar and se is if in portuguese


=(CONTAR.SE(R!$D$4;"=*01*"))+(CONTAR.SE(R!$F$4;"=* 01*"))+(CONTAR.SE(R!$H$4;"=*01*"))+(CONTAR.SE(R!$J $4;"=*01*"))+(CONTAR.SE(R!$L$4;"=*01*"))+(CONTAR.S E(R!$N$4;"=*01*"))+(CONTAR.SE(R!$P$4;"=*01*"))+(CO NTAR.SE(R!$R$4;"=*01*"))+(CONTAR.SE(R!$T$4;"=*01*" ))+(CONTAR.SE(R!$V$4;"=*01*"))+(CONTAR.SE(R!$X$4;" =*01*"))+(CONTAR.SE(R!$Z$4;"=*01*"))+(CONTAR.SE(R! $AB$4;"=*01*"))+(CONTAR.SE(R!$AD$4;"=*01*"))+(CONT AR.SE(R!$AF$4;"=*01*"))+(CONTAR.SE(R!$AH$4;"=*01*" ))+(CONTAR.SE(R!$AJ$4;"=*01*"))+(CONTAR.SE(R!$AL$4 ;"=*01*"))+(CONTAR.SE(R!$AN$4;"=*01*"))+(CONTAR.SE (R!$AP$4;"=*01*"))+(CONTAR.SE(R!$AR$4;"=*01*"))+(C ONTAR.SE(R!$AT$4;"=*01*"))+(CONTAR.SE(R!$AV$4;"=*0 1*"))+(CONTAR.SE(R!$AX$4;"=*01*"))+(CONTAR.SE(R!$A Z$4;"=*01*"))+(CONTAR.SE(R!$BB$4;"=*01*"))+(CONTAR .SE(R!$BD$4;"=*01*"))+(CONTAR.SE(R!$BF$4;"=*01*")) +(CONTAR.SE(R!$BH$4;"=*01*"))+(CONTAR.SE(R!$BJ$4;" =*01*"))+(CONTAR.SE(R!$BL$4;"=*01*"))

Best regards




All times are GMT +1. The time now is 02:51 AM.

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