Change part of formula

  • Thread starter coutinhodevasconcelos
  • Start date
C

coutinhodevasconcelos

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.SE(R!$N$4;"=*01*"))+(CONTAR.SE(R!$P$4;"=*01*"))+(CONTAR.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*"))+(CONTAR.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*"))+(CONTAR.SE(R!$AT$4;"=*01*"))+(CONTAR.SE(R!$AV$4;"=*01*"))+(CONTAR.SE(R!$AX$4;"=*01*"))+(CONTAR.SE(R!$AZ$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
 
B

Biff

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top