how to make text to represent a value in cells

thnirmitha

New Member
Joined
Apr 29, 2024
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Hi I forgot how I did this long time ago. I need to type short letters like wd, nb, ro, c, b, st in the various cells and it needs to represent a value such as c=-5, nb=2. So at the end I can get the total into different cell/column.

Please see the attached picture.

1714377069422.jpeg
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi there,
the easiest way is to duplicate this setup and use VLOOKUP or XLOOKUP to replace the text values with the ones from the little table you have in X2:Y7 and do a simple SUM. Trying to do a range text-to-value conversion inside a SUM makes the formula way too complicated.
Cheers,
Koen
 
Upvote 0
For I10 how about
Excel Formula:
=SUM(C10:H10,XLOOKUP(C10:H10,$X$2:$X$10,$Y$2:$Y$10,0))
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,325
Members
453,032
Latest member
Pauh

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