Consulting

Results 1 to 2 of 2

Thread: Count texts in two colums and if no match write data

  1. #1
    VBAX Regular
    Joined
    Dec 2014
    Posts
    25
    Location

    Count texts in two colums and if no match write data

    Hello

    I am wanting hopefully some VBA code if possible that the following can be done?

    "if the current month and the previous month are not the same and then write the previous month and current month's text to an output column"

    However if both months are the same it can be skipped

    (Though if it's easier all can be counted (even consulting to consulting) and I can filter it out when I grab the data into a pivot table)

    Many thanks for any advice
    Previous Month Current Month Output
    Consulting Accepted Consulting to Accepted
    Consulting Consulting
    Consulting Agreed Consulting to Agreed
    Agreed Finalized Agreed to Finalized
    Last edited by markpem; 06-02-2016 at 06:20 AM.

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Dim Cel As Range
    For Each Cel in Intersect(UsedRange, Range(Previous Month Column))
    If Cel.Offset(,1) <> Cel Then Cel.Offset(,2) = Cel & " to " & Cel.offset(,1)
    Next
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

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