Return A Cell Value Based On the First Occurrence of data

pauleapo

Board Regular
Joined
Nov 23, 2005
Messages
76
Office Version
  1. 365
Platform
  1. Windows
Hard to explain what I am after, but here goes....

I have a planner set up, from column AF in row 7 the header is for week-commencing dates, underneath the columns in each week I input a number of hours per week assigned to a task. What I want to do is return the value in row X, header 'Manfacture (Week Commencing) from row 7 for the first time it encounters a value in the range across the row, this being the week I start the task. As below I have this working using a lookup and this is all fine and dandy until the task spans more than one week, it then only returns the cell data from row 7 once it has 'summed' to equal what is in the column 'V'. If you look at the below picture I have highlighted the cell where this formula doesn't work it returns the date for the second week of the process which spans two weeks.

This is the formula I am using:

Excel Formula:
=LOOKUP(V8,AF8:BO8,$AF$7:$BO$7)

Capture.PNG


Hope you can make sense of the above :)

Any help would be greatly appreciated

Thanks

pauleapo
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Hi Fluff,

Apologies a few years since I last used this forum for help....

Windows OS using Excel 365

Thanks

P
 
Upvote 0
Thanks for that.
How about
Excel Formula:
=INDEX(FILTER(AF$7:BO$7,AF8:BO8<>0,"none"),,1)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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