ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Number Applying Value To Text Selection In List Box (https://www.excelbanter.com/new-users-excel/36056-number-applying-value-text-selection-list-box.html)

ANDYPAND

Number Applying Value To Text Selection In List Box
 

undefined U N D E F I N E D undefined
I have created a list box where the choice is either I or M. I need the
selection to convert to 0 or 1 accordingly. I then use SUM to add up the
total in a column.
Can anyone help this beginner please?


--
ANDYPAND
------------------------------------------------------------------------
ANDYPAND's Profile: http://www.excelforum.com/member.php...o&userid=25351
View this thread: http://www.excelforum.com/showthread...hreadid=388333


ANDYPAND


Sorry i messed up the formatting on my initial post- i will try again:

I have created a list box where the choice is either I or M. I need the
selection to convert to 0 or 1 accordingly. I then use SUM to add up the
total in a column.
Can anyone help this beginner please?


--
ANDYPAND
------------------------------------------------------------------------
ANDYPAND's Profile: http://www.excelforum.com/member.php...o&userid=25351
View this thread: http://www.excelforum.com/showthread...hreadid=388333


Bob Phillips

Why not use COUNTIF rather than SUM

=COUNTIF(A1:A10,"I")

as an example

--
HTH

Bob Phillips

"ANDYPAND" wrote in
message ...

Sorry i messed up the formatting on my initial post- i will try again:

I have created a list box where the choice is either I or M. I need the
selection to convert to 0 or 1 accordingly. I then use SUM to add up the
total in a column.
Can anyone help this beginner please?


--
ANDYPAND
------------------------------------------------------------------------
ANDYPAND's Profile:

http://www.excelforum.com/member.php...o&userid=25351
View this thread: http://www.excelforum.com/showthread...hreadid=388333





All times are GMT +1. The time now is 11:02 PM.

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