Values Mismatch

aslamkhan

New Member
Joined
Sep 4, 2024
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
I have 12 cells in a row with number format and the value is from 1 to 12 representing 12 months in a year. I have another cell where I enter a date. From the date, I extract the month number, for eg; January is 1, February is 2 and so on. The date I enter is in fact employee date of joining. In another cell i have his salary amount. Now when i enter the date, i want excel to fill in the salary amount from the month he has joined and all the following months until end of year.

I am using the TEXT function to extract the number of month. I am trying to match the extracted number with the month number in the heading row and if true to enter the salary and continue to enter the same until month 12. But even though the extracted number is 01, it does not enter the salary in column 1.

I have shared the screenshot of my file herewith for your better understanding.
Text Function mismatch.png
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Don't use a text function. A text 01 will not match a numeric 1.
In your formula try using:
Excel Formula:
=MONTH(K6)
 
Upvote 0
Solution

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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