Hi,
I have this part of my code
.Range("F2:F" & R) = .Evaluate("IF(B2:B" & R & "=""FIRST BALANCE"","""",1)")
I try to add Right function but doesn't succeed and I don't know where is exact location should add it .
what I want to match part of this FIRST BALANCE because
I have FIRST BALANCE FOR SALES , FIRST BALANCE FOR PURCHASE
currently will just search for whole words FIRST BALANCE.
the code will create report in last sheet by matching new data among sheets based on matching sheets names with the last part of item are existed in column B for DAILY sheet based on the same date and amount
if the last item in column B is matched with sheet name when match the others sheets and the same amount and date then will ignore it , if there is no last item doesn't contain sheet name to match with the others sheets in DAILY sheet then also will ignore it .
it will copy new data in two cases:
1-by matching new data among sheets based on matching sheets names with the last part of item are existed in column B for DAILY sheet based on the different date and amount .
2- by new data are existed in the others sheets but not is existed in DAILY sheet totally
how can I use RIGHT function with this line ,please?