+ Reply to Thread
Results 1 to 2 of 2

Help making certain text = a value and then calculate value in certain cells

  1. #1
    Registered User
    Join Date
    02-05-2023
    Location
    Charlotte, NC
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2301 Build 16.0.16026.20002) 64-bit
    Posts
    1

    Help making certain text = a value and then calculate value in certain cells

    Okay, so I will try to give as much detail without confusing anyone.

    I am trying to make a 2023 attendance tracker for my team since they have not yet given us access to a new one. I have a legend with the "Codes" that will be used (FMLA, ATO, SATO, etc) and what value those should equal (0,1, or .5).

    I then have a large area where each month is a column and the y-axis is the dates 1-31. At the bottom of each column is a total row that I have set up to calculate the SUM of the corresponding month's column. The issue I have is that I need to be able to fill in on the calendar portion the "codes" and have those codes equal the correct value, and then that value is shown in the totals row.

    For example, cells A7:A37 contain the numbers 1-31 (Days of the month), cells B6:M6 contain the months of the year, and cells B38:M38 contain column totals. On Jan 15th I have an agent call out sick, this is code SCKU and should equal 1. Then, on Jan 25th the same agent is late by less than 2 hours, this is code Late<2 and should equal 0.5. To track this I would put code SCKU in cell B21 and Late<2 in cell B31 and cell B38 would show 1.5.

    I've already gotten through the conditional formatting so that the cells follow the correct shading rule when you enter text, its the counting part that I just can't seem to figure out. I tried Name Manager and it doesn't work when using the formula =SUM(B7:B37) in cell B38.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: Help making certain text = a value and then calculate value in certain cells

    hi,

    try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Please be as complete as possible in your asking so it may save use all the time to rework the solution because you didn't give all the requirements. If you have a layout in mind please work it out first so we can adapt our solution to it. Thanks.
    If you have been helped, maybe you could click the *

+ 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. Associating different text cells to one text cell to calculate cost average
    By Fruffball in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-01-2022, 10:03 AM
  2. Calculate average when some cells contain text
    By 4sp1r3 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-30-2020, 09:02 AM
  3. MAKING Formula / text cells disabled
    By Ramesh h&m in forum Excel General
    Replies: 3
    Last Post: 01-29-2019, 01:49 AM
  4. Making Text Appear in a cell based on text in 2 other cells
    By NSimp216 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2015, 04:53 PM
  5. Making a text/comment Box have Linked Values to Certain Cells
    By Alexk00717 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2013, 04:45 PM
  6. [SOLVED] How to Calculate with text in cells
    By countryred in forum Excel General
    Replies: 2
    Last Post: 04-15-2012, 07:14 PM
  7. Replies: 5
    Last Post: 12-23-2010, 02:49 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