Need Formula Help Please

Vike1979

New Member
Joined
Mar 9, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I need help with a formula that will return the month header (per row) where the price first changes. Shown below are examples of this Cell P is where I need the header month to show the first month with a increase or decrease. Column C is a base price.

View attachment 87155
1678376151269.png
 

Attachments

  • Example of formula needed.PNG
    Example of formula needed.PNG
    34.2 KB · Views: 1

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi & welcome to MrExcel.
How about
Excel Formula:
=INDEX(FILTER($D$5:$O$5,D6:O6<>C6),,1)
 
Upvote 0
I only got it to give #CALC or return the wrong value. Will the Index/Filter return the Column header month where the price first changes? For the first line example, I'm trying to get it return Mar 2023 in column/cell P6.
 
Upvote 0
Will the Index/Filter return the Column header month where the price first changes?
Yes it will.
You should only get a #calc error if all the values in C6:O6 are the same, in which case you can use
Excel Formula:
=INDEX(FILTER($D$5:$O$5,D6:O6<>C6,"No change"),,1)
 
Upvote 0
Yes it will.
You should only get a #calc error if all the values in C6:O6 are the same, in which case you can use
Excel Formula:
=INDEX(FILTER($D$5:$O$5,D6:O6<>C6,"No change"),,1)


Is there a way to show those month headers that don't change prices? Thank you for helping me. I still can't get it to return the Mar 23 header but progress is being made. :)
 
Upvote 0
I still can't get it to return the Mar 23 header
In that case can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
In that case can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Formula Inquiry.xlsx
ACDEFGHIJKLMNOPQRSTUVWX
1
2*Example of formula I need to return a month header where the first price change occurs per row.
3
4Base Month (C)Need to show/return column header (Month/Year) where the first price change occurred. Each row(name/item #) is a different product¯
5NameDec 2022Jan 2023Feb 2023Mar 2023Apr 2023May 2023Jun 2023Jul 2023Aug 2023Sep 2023Oct 2023Nov 2023Dec 2023Month Change*Need Column to return header (month name of first price change)
6Item 1$12.00$12.00$12.00$13.00$13.00$13.00$13.00$13.00$13.00$13.00$13.00$13.00$13.00Mar 2023 (result needed)*Need formula to return Mar 2023 as the month of the price change
7Item 2$11.00$11.00$11.00$11.00$11.00$11.00$11.00$11.00$14.00$14.00$14.00$14.00$14.00Aug 2023 (result needed)*Need formula to return Aug 2023 as the month of the price change
8Item 3$9.00$9.00$9.00$9.00$9.00$9.00$9.00$9.00$9.00$9.00$8.00$8.00$8.00Oct 2023 (result needed)*Need formula to return Oct 2023 as the month of the price change
9Item 4
10
11
12
13
PCR
 
Upvote 0
Thanks for that.
The formula I suggested works for me.
Fluff.xlsm
ABCDEFGHIJKLMNOP
1
2*Example of formula I need to return a month header where the first price change occurs per row.
3
4Base Month (C)Need to show/return column header (Month/Year) where the first price change occurred. Each row(name/item #) is a different product¯
5NameDec-22Jan-23Feb-23Mar-23Apr-23May-23Jun-23Jul-23Aug-23Sep-23Oct-23Nov-23Dec-23Month Change
6Item 11212121313131313131313131301/03/2023
7Item 21111111111111111141414141401/08/2023
8Item 3999999999988801/10/2023
9Item 4No change
Main
Cell Formulas
RangeFormula
P6:P9P6=INDEX(FILTER($D$5:$O$5,D6:O6<>C6,"No change"),,1)


Can you post what you get
 
Upvote 1
Solution
Thanks for that.
The formula I suggested works for me.
Fluff.xlsm
ABCDEFGHIJKLMNOP
1
2*Example of formula I need to return a month header where the first price change occurs per row.
3
4Base Month (C)Need to show/return column header (Month/Year) where the first price change occurred. Each row(name/item #) is a different product¯
5NameDec-22Jan-23Feb-23Mar-23Apr-23May-23Jun-23Jul-23Aug-23Sep-23Oct-23Nov-23Dec-23Month Change
6Item 11212121313131313131313131301/03/2023
7Item 21111111111111111141414141401/08/2023
8Item 3999999999988801/10/2023
9Item 4No change
Main
Cell Formulas
RangeFormula
P6:P9P6=INDEX(FILTER($D$5:$O$5,D6:O6<>C6,"No change"),,1)


Can you post what you get


Please see below
Formula Inquiry.xlsx
ACDEFGHIJKLMNOPQRSTUVW
1
2*Example of formula I need to return a month header where the first price change occurs per row.
3
4Base Month (C)Need to show/return column header (Month/Year) where the first price change occurred. Each row(name/item #) is a different product¯
5NameDec 2022Jan 2023Feb 2023Mar 2023Apr 2023May 2023Jun 2023Jul 2023Aug 2023Sep 2023Oct 2023Nov 2023Dec 2023Month Change*Need Column to return header (month name of first price change)
6Item 1$12.00$12.00$12.00$13.00$13.00$13.00$13.00$13.00$13.00$13.00$13.00$13.00$13.00Mar 2023*Need formula to return Mar 2023 as the month of the price change
7Item 2$11.00$11.00$11.00$11.00$11.00$11.00$11.00$11.00$14.00$14.00$14.00$14.00$14.00Aug 2023*Need formula to return Aug 2023 as the month of the price change
8Item 3$9.00$9.00$9.00$9.00$9.00$9.00$9.00$9.00$9.00$9.00$8.00$8.00$8.00Oct 2023*Need formula to return Oct 2023 as the month of the price change
9Item 4
PCR
Cell Formulas
RangeFormula
P6:P8P6=INDEX(FILTER($D$5:$O$5,D6:O6<>C6,"No change"),,1)
 
Upvote 0

Forum statistics

Threads
1,215,988
Messages
6,128,145
Members
449,426
Latest member
revK

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