Excel - Formula to return data from furthest row right with in column that has specific text

SU30

New Member
Joined
Mar 29, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am looking to populate data from the the cell furthest right that is identified in a column with specific text. Formula for pulling the data for the row is =LOOKUP(2,1/(F2:P2<>""),F2:P2).


A2 should be populating M2 (Supplier A PN)

B2 should be populating N2 (Supplier B PN)

C2 should be populating O2 (Supplier B PN Rev)

1648582975582.png


I currently have the following, but i would like to have the 2nd part of the formula bolded just extend so whenever i add new data under each heading, i do not have to alter the formula. With the current setup, if there is no data in that column furthest right, it returns a 0.

In A2:

=INDEX(2:2,MAX(($E$1:$Z$1="Supplier A PN")*COLUMN($E$1:$Z$1)))

In B2:

=INDEX(2:2,MAX(($E$1:$Z$1="Supplier B PN")*COLUMN($E$1:$Z$1)))

In C2:

=INDEX(2:2,MAX(($E$1:$Z$1="Supplier B PN Rev")*COLUMN($E$1:$Z$1)))
 

Attachments

  • 1648583041391.png
    1648583041391.png
    8.7 KB · Views: 5

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,213,549
Messages
6,114,264
Members
448,558
Latest member
aivin

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