ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Convert Letter to Number (https://www.excelbanter.com/excel-worksheet-functions/188752-convert-letter-number.html)

ExcelMS

Convert Letter to Number
 
I am trying to design a workbook so that when I enter an "R" or "L" in a
column on Sheet 1, the appropriate column with Category L or Category R in
Sheet 2 gets a 1 underneath it. Do you have any ideas about how might be the
best way to accomplish this?

Category Category L
Category R

R 1
1
R 1
1
L 1

L 1
L Total = 4
Total = 2
L

Sheet 1
Sheet 2




Rick Rothstein \(MVP - VB\)[_512_]

Convert Letter to Number
 
Assuming your data starts in Row 2 (with Row 1 being a header row) and that
the Category column is Column A, put these formulas in the indicated cells
on Row 2 and then copy them down...

Category L column: =IF(A2="L",1,"")

Category R column: =IF(A2="R",1,"")

Rick


"ExcelMS" wrote in message
...
I am trying to design a workbook so that when I enter an "R" or "L" in a
column on Sheet 1, the appropriate column with Category L or Category R
in
Sheet 2 gets a 1 underneath it. Do you have any ideas about how might be
the
best way to accomplish this?

Category Category L
Category R

R 1
1
R 1
1
L 1

L 1
L Total = 4
Total = 2
L

Sheet 1
Sheet 2




ExcelMS

Convert Letter to Number
 
Thank you Rick, it works awesome, you are the man!

Eddie

"Rick Rothstein (MVP - VB)" wrote:

Assuming your data starts in Row 2 (with Row 1 being a header row) and that
the Category column is Column A, put these formulas in the indicated cells
on Row 2 and then copy them down...

Category L column: =IF(A2="L",1,"")

Category R column: =IF(A2="R",1,"")

Rick


"ExcelMS" wrote in message
...
I am trying to design a workbook so that when I enter an "R" or "L" in a
column on Sheet 1, the appropriate column with Category L or Category R
in
Sheet 2 gets a 1 underneath it. Do you have any ideas about how might be
the
best way to accomplish this?

Category Category L
Category R

R 1
1
R 1
1
L 1

L 1
L Total = 4
Total = 2
L

Sheet 1
Sheet 2






All times are GMT +1. The time now is 09:07 AM.

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