Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Formula
Jan Feb Mar Result Part A 1 - - Jan Part B - 1 - Feb Part C - - 1 Mar I need to write a formula that will return the last month a part was sold over a three year period. In the table above the formula would return "Feb" for part B. I can't do a nested if because I have to search through 36 columns. Any thoughts are greatly appreciated. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way which might suffice ..
Assuming source table as posted is in Sheet1, with the "month" labels (Jan, Feb,...) in B1 across, part labels in A2 down In another sheet, with the same part labels listed in A2 down Place in B2, then array-enter the formula by pressing CTRL+SHIFT+ENTER (instead of just pressing ENTER): =INDEX(Sheet1!$1:$1,MATCH(TRUE,ISNUMBER(Sheet1!2:2 ),0)) B2 will return the result "Jan". Copy down as far as required. -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Eric" wrote: Formula Jan Feb Mar Result Part A 1 - - Jan Part B - 1 - Feb Part C - - 1 Mar I need to write a formula that will return the last month a part was sold over a three year period. In the table above the formula would return "Feb" for part B. I can't do a nested if because I have to search through 36 columns. Any thoughts are greatly appreciated. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sorry Max, I believe I over simplified the example. There will be multiple
results for each part accross 36 columns. I need to return the month from the last instance. i.e. If the last part sold occured in Nov 2006, I need the formula to return "Nov 2006", but there may be sales before this date. Thanks again, Eric "Max" wrote: One way which might suffice .. Assuming source table as posted is in Sheet1, with the "month" labels (Jan, Feb,...) in B1 across, part labels in A2 down In another sheet, with the same part labels listed in A2 down Place in B2, then array-enter the formula by pressing CTRL+SHIFT+ENTER (instead of just pressing ENTER): =INDEX(Sheet1!$1:$1,MATCH(TRUE,ISNUMBER(Sheet1!2:2 ),0)) B2 will return the result "Jan". Copy down as far as required. -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Eric" wrote: Formula Jan Feb Mar Result Part A 1 - - Jan Part B - 1 - Feb Part C - - 1 Mar I need to write a formula that will return the last month a part was sold over a three year period. In the table above the formula would return "Feb" for part B. I can't do a nested if because I have to search through 36 columns. Any thoughts are greatly appreciated. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm out. Suggest you put in a new posting if no one else responds here.
-- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Eric" wrote: Sorry Max, I believe I over simplified the example. There will be multiple results for each part accross 36 columns. I need to return the month from the last instance. i.e. If the last part sold occured in Nov 2006, I need the formula to return "Nov 2006", but there may be sales before this date. Thanks again, Eric |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup | Excel Worksheet Functions | |||
Sumproduct - Condition based on lookup of a Lookup | Excel Discussion (Misc queries) | |||
Advanced Lookup (lookup for 2 values) | Excel Worksheet Functions | |||
Pivot table doing a lookup without using the lookup function? | Excel Discussion (Misc queries) | |||
How do I lookup and return different values when the lookup value. | Excel Discussion (Misc queries) |