Need expertise on assigning numeric value to text cell and copying that value to another cell.

jyoung74

New Member
Joined
Nov 16, 2012
Messages
1
I have an Excel file I am using as a grading rubric.

I have 5 different cells with text only in them. I need to be able to click on the cell and generate a score on the sixth cell, which is empty. For example, if I click on the first cell with text, the score is 1 and that 1 needs to appear in the sixth cell. If I click on the second cell with text, that score needs to be 2 and so on. I have no idea how to do this. Can someone guide me, please?:confused:
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi, and welcome to the board.
Here are two solutions. The first one is a formula. It will only work if you double click the cell and hit Enter:
=CELL("col")
The second one is a VBA solution:
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Column < 6 Then
        Cells(Target.Row, 6) = Target.Column
    End If
End Sub

Vidar
 
Last edited:
Upvote 0
You have come to the right place. Step into my parlor. Cigar? Drink?

Welcome to the forum.

I need more info. Are you dealing with many rows of the "5 different cells"? Meaning, for example, Column A is your first cell, Column E is your fifth cell and you want to affect many rows?

I can help you.

Jeff
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top