Re: Converting Text into a Numeric Value and Totalling

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If you are only using H and HH then you could use the following formula.
Values entered in Range A1:A8

=(COUNTIF(A1:A8,"H")*1)+(COUNTIF(A1:A8,"HH")*0.5)

If you are using lots of different characters to represent values then you
would need something a little more complex.
Hope this helps.

Nick

"Shazbut" <Shazbut.1oto5o@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:Shazbut.1oto5o@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> I am currently working on a spreadsheet whereby I want to automatically
> total entries made in text.
>
> I am fine using "countif" for most of my codes but I have a problem.
>
> I have a code of "H" which is equal to 1 and a code of "HH" which is
> equal to 0.5.
>
> I want to know if it is possible to enter a formula that will total the
> amount of "H"s (H=1) AND the total of "HH"s (HH=0.5) within the same
> formula.
>
> E.G. The spreadsheet contains 5 cells with "H" entered and 3 cells
> with "HH" entered. Therefore the total should be 6.5.
>
> Is such a formula possible?
>
>
> --
> Shazbut


.



Relevant Pages

  • Re: Identify missing record numbers
    ... Sub DisplayMissing() ... Dim prev&, k&, n& ... I am looking for a way to easily identify codes (within a range ...
    (microsoft.public.excel.misc)
  • Re: Countif/And Function
    ... >> criteria. ... >> this be done using the COUNTIF or AND functions?? ... >> count the number of cells in column E with a value of N in column E AND a ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: combining countif and mid or right functions
    ... > I can not get the syntax correct to use countif with right or mid functions. ... > 3rd digits. ... Dave Peterson ... Prev by Date: ...
    (microsoft.public.excel)
  • Converting Text into a Numeric Value and Totalling
    ... I am currently working on a spreadsheet whereby I want to automatically ... total entries made in text. ... I am fine using "countif" for most of my codes but I have a problem. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Array Function
    ... >CountIF seems to only count within a certain column. ... "Learning is a behavior that results from consequences." ... B.F. Skinner ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)