VBA to Show Cell as Text String but Value as Number

jmh2008

New Member
Joined
Sep 4, 2009
Messages
42
Trying to create a sheet for archery scores. If someone hits the Bullseye, it's marked as an "X" but recorded as 10 point.

We need to keep the X's, but this will determine who was the highest score, but if there's a tied, then it's whoever have the most "x's".

How can I Show on the Score sheet the "X", but have the value of 10 so I can sum and average the scores.

Thanks
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try this for example:
Shows the number of X's in Range("F1:F7")
Code:
=COUNTIF(F1:F7,"x")
 
Upvote 0
Sorry, that wouldn't work is what I have set up. I have VBA working now that when you search for a record it copy from "All Score" to the input sheet. Also, an X and "Hitting the Yellow" are both worth 10 points.

I was hoping to incorporate something into my existing VBA. I'm just not a VBA pro by any means.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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