EVERY AUGUST MONTH IN COLUMN "A" CONVERT INTO TEXT IN COLUMN "C" AS "INC" AND ANY REMARK COLUMN "C" TEST AS "AAS" OR "SL" FROM MY EXCEL TABLE

ravindra1962

New Member
Joined
Jan 21, 2017
Messages
19
Office Version
  1. 2007
Platform
  1. Windows
from the excel data
Every august month any year in column "A" shows in Remark column "C" as text "inc"
if any month remark column "c" as text "SL" or "AAS"
need formula plZ
FromtoReamrk
01-07-201931-07-2019
01-08-201931-08-2019INC
01-09-201930-09-2019
01-10-201931-10-2019
01-11-201930-11-2019
01-12-201931-12-2019
01-01-202031-01-2020
01-02-202029-02-2020
01-03-202031-03-2020
01-04-202030-04-2020
01-05-202031-05-2020
01-06-202030-06-2020
01-07-202031-07-2020
01-07-202015-07-2020SL
01-08-202031-08-2020INC
01-09-202030-09-2020
01-10-202031-10-2020
01-11-202030-11-2020AAS
01-12-202031-12-2020
 
Code:
=IF(AND(MONTH(A2)=8,MONTH(B2)=8),"INC",IF(AND(MONTH(A2)=7,YEAR(A2)=2020, MONTH(B2)=7,YEAR(B2)=2020),"SL",IF(AND(MONTH(A2)=11,YEAR(A2)=2020, MONTH(B2)=11,YEAR(B2)=2020),"AAS",""))))
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
SMALL ERROR IN : "SL"
FromtoREMARK
01-07-201931-07-2019
01-08-201931-08-2019INCINC
01-09-201930-09-2019
01-10-201931-10-2019
01-11-201930-11-2019
01-12-201931-12-2019
01-01-202031-01-2020
01-02-202029-02-2020
01-03-202031-03-2020
01-04-202030-04-2020
01-05-202031-05-2020
01-06-202030-06-2020
01-07-2020
31-07-2020SLERROR
01-07-202015-07-2020SLSL
01-08-202031-08-2020INCINC
01-09-202030-09-2020
01-10-202031-10-2020
01-11-202030-11-2020AASAAS
01-12-202031-12-2020
 
Upvote 0
"1-Jul-20 to 31-Jul-20" belongs to the Jul-20 REGULAR SALARY. IT SHOWS BLANK
AND THEN "1-Jul-20 to 15-Jul-20" belongs to SUPPLEMENTARY LEAVE SALARY, IT (15 DAYS SALARY) WAS SANCTION IN THE MONTH OF JULY 20 SIR
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top