+ Reply to Thread
Results 1 to 13 of 13

Display a letter that has a value which can be calculated

  1. #1
    Registered User
    Join Date
    08-13-2022
    Location
    UK
    MS-Off Ver
    Professional plus 2016
    Posts
    8

    Question Display a letter that has a value which can be calculated

    Hi I am trying to use excell to design a new rota. I am using letters to display the type of shift D (a day) and I want it to represent a number (2 sessions) which can be calculated, but in the sheet I want the letter to be left in the cell.

    D = 2
    L = 2.67
    N = 3.2
    SPA = 2

    So if I put a schedule in like this
    D | L | SPA - I can have a cell that calculates the total sessions at the end - but without changing the letters to numbers.

    I have used the Name manager to assign numbers to letters - but this changes the letter to the assigned number.

    I hope that makes sense - any help would be appreciated.
    Thanks

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,380

    Re: Display a letter that has a value which can be calculated

    Try this formla

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-13-2022
    Location
    UK
    MS-Off Ver
    Professional plus 2016
    Posts
    8

    Re: Display a letter that has a value which can be calculated

    That worked great thank you for your quick reply.

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,380

    Re: Display a letter that has a value which can be calculated

    @tudorbob You're Welcome. Glad to help . Thank You for the feedback.

    If you finally get a solution please mark your thread as SOLVED:
    - Click Thread Tools above your first post,you will see the word PREFIX on the upper left, press the button to select [SOLVED] select "Mark your thread as Solved".
    - Please click on the *Add Reputation button at the bottom left. Whoever helps you, give it to whoever you like

  5. #5
    Registered User
    Join Date
    08-13-2022
    Location
    UK
    MS-Off Ver
    Professional plus 2016
    Posts
    8

    Re: Display a letter that has a value which can be calculated

    Hi I have found that this is miss calculating the value - even though the terms are in "" it seems to pick up other text with the same letter in it and add it to the value of the letter. If you see the attached file you can see that I have added two letters to each term but when entering WE - wekend early the value is 4.8 instead of 2.67
    Any suggestions?ROTA.xlsx

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,406

    Re: Display a letter that has a value which can be calculated

    In formula I2 there is two times "WE";"WE".
    I would adjust that.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Display a letter that has a value which can be calculated

    I would solve that re-arange the data (e.g. with Power Query) in a flat table.

    After that VLookup to find the criteria.


    Advantage (to my opinion).

    Easier to changes the formula.

    Easier to analyse the data (e.g. with a pivot table).
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Display a letter that has a value which can be calculated

    As per post #6

    =SUMPRODUCT((ISNUMBER(FIND({"ND";"NL";"NN";"SPA";"NA";"AM";"WE";"WN";"WL"},B11:H11)))*{2;2.25;3.04;2;1;2.17;2.67;3.17;2.5})
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Registered User
    Join Date
    08-13-2022
    Location
    UK
    MS-Off Ver
    Professional plus 2016
    Posts
    8

    Re: Display a letter that has a value which can be calculated

    Thanks, missed that. Will explore the vlookup option but this is working at present.
    Great help

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Display a letter that has a value which can be calculated

    Try

    =SUMPRODUCT(--($Q$13:$Q$22=$B2:$H2)*($R$13:$R$22))

    =SUMPRODUCT(--($Q$13:$Q$22=$B2:$H2)*($S$13:$S$22))

    Removes "hard_copied" values (not good practice) from your formula

    NOTE: deleted a few rows so highlighted rangs are different to your post!

    As per

    =SUMPRODUCT(--($Q$24:$Q$33=$B2:$H2)*($]R$24:$R$33))
    Last edited by JohnTopley; 08-13-2022 at 09:32 AM.

  11. #11
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,380

    Re: Display a letter that has a value which can be calculated

    Cell I2 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Images Attached Images

  12. #12
    Registered User
    Join Date
    08-13-2022
    Location
    UK
    MS-Off Ver
    Professional plus 2016
    Posts
    8

    Re: Display a letter that has a value which can be calculated

    That made it a lot easier - thanks
    Tudor

  13. #13
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,380

    Re: Display a letter that has a value which can be calculated

    @tudorbob You're Welcome. Glad to help . Thank You for the feedback and rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Display the source for a calculated cell...?
    By wspencer11 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-13-2015, 10:22 AM
  2. Display calculated '+' values?
    By Abgirl in forum Excel General
    Replies: 4
    Last Post: 02-13-2012, 12:51 PM
  3. Display time calculated in minutes and seconds
    By mike donnell in forum Excel General
    Replies: 1
    Last Post: 10-28-2011, 11:21 AM
  4. VBA-how to display the formula as a calculated value in a simple way?
    By ilya49 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-23-2011, 04:47 PM
  5. Columns Display Numbers Instead of Letter
    By Karleajensar in forum Excel General
    Replies: 3
    Last Post: 12-04-2009, 03:04 PM
  6. using a letter or string to display a value
    By phil@micro in forum Excel General
    Replies: 1
    Last Post: 01-23-2009, 12:31 PM
  7. can i get a letter to be calculated in a worksheet
    By kristi _ 71 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2005, 04:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1