Sub Macro1___Design_formula()'
Application.Goto Reference:="R4C7"
Selection.FormulaR1C1 = "''manually enter into G5"
''begin designing the formula
Application.Goto Reference:="R5C9"
Selection.FormulaR1C1 = "'=sumifs('"
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.FormulaR1C1 = "=RC[-3]"
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.FormulaR1C1 = "''!F:F,'"
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.FormulaR1C1 = "=RC[-5]"
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.FormulaR1C1 = "''!A:A,'"
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.FormulaR1C1 = "=RC[-7]"
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.FormulaR1C1 = "''!B:B,N3)"
''concatenate the cells so it looks like a formula
Application.Goto Reference:="R5C17"
Selection.FormulaR1C1 = "=RC[-8]&RC[-7]&RC[-6]&RC[-5]&RC[-4]&RC[-3]&RC[-2]"
'''copy the formula, paste as values, so it is now working with values
Selection.Copy
Application.Goto Reference:="R5C18"
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Selection.Copy
''past to row1, as row1 needs to be NOT empty when parsing
Application.Goto Reference:="R1C18"
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
'parse into general format. parsing will convert the value into a formula since it has the equal sign in front
Application.Goto Reference:="R1C18"
ActiveCell.Columns("A:A").EntireColumn.Select
Selection.TextToColumns Destination:=ActiveCell, DataType:=xlDelimited, TextQualifier:=xlNone, ConsecutiveDelimiter:=False, Tab:=False, Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo:=Array(1, 1), TrailingMinusNumbers:=True
End Sub