How do I concatenate two cells (one with a number, other with week dates) into a third cell in word 2021?

Dsp 1024 71 Reputation points
2026-01-12T04:34:32.3033333+00:00

Hi all,

The picture of the table shows what I'm trying to do. The cell contents are text (or string) I just want to concatenate the cells from A3 and B3 with some extra letter ( "Week" and "-") to show like C3. C3 is not a formula right now. I typed it to show what I need. I tried the formula shown in C4 but doesn't work. I get !Syntax Error, " . I don't know why. I've tried the CONCAT function, TEXT function and nothing works. What Am I doing wrong? Thanks.

table

Microsoft 365 and Office | Word | For home | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Jay Freedman 206.8K Reputation points Volunteer Moderator
    2026-01-13T01:49:35.44+00:00
    Sub MakeDescriptions()
        Dim tbl As Table
        Dim rw as Integer
        Dim desc As String
        Dim rng As Range
    
    If ActiveDocument.Tables.Count = 0 Then  
        MsgBox "There are no tables in the active document."  
        Exit Sub  
    End If  
    
      
    Set tbl = ActiveDocument.Tables(1)  
    
      
    For rw = 2 To tbl.Rows.Count  
        Set rng = tbl.Cell(Row:=rw, Column:=1).Range  
        rng.MoveEnd Count:=-1  ' remove cell marker from end of range  
        desc = "week " & rng.Text  
    
          
        Set rng = tbl.Cell(Row:=rw, Column:=2).Range  
        rng.MoveEnd Count:=-1  
        desc = desc & " - " & rng.Text  
    
          
        tbl.Cell(Row:=rw, Column:=3).Range.Text = desc  
    Next rw 
    
    End Sub
    
    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Alexandr S 103.7K Reputation points Independent Advisor
    2026-01-12T05:31:22.4033333+00:00

    Hello.

    1. Perform the A,B, and C format as text.
    2. In C, enter the formula, based on your table., an example of which is shown in the screenshot:

    User's image

    That is, in your case it will be

    ="Week" & A3 & "-" & B3


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.