![]() |
|
#1
|
|||
|
|||
![]() I am trying to manage movement of equipment. I am looking for a formula that can show where the current location is. I have tried to use the IF function but once I go beyond 2 choices, it returns a 0 value. Can anyone assist or provide some alternative formula. Regards |
#2
|
|||
|
|||
![]()
Hi Brian..Can u pls give me a brief explanation of ur issue, so i can give u the exact result.
thanks.. ![]() |
#3
|
||||
|
||||
![]()
Seems to work OK for me( see attached)
The logic of your formula is a bit weird. If H3="" and none of the other conditions is satisfied, return H3? Also the +signs before the cell ref are not necessary
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#4
|
|||
|
|||
![]()
What I want the spreadsheet to do is identify the current location J3. As equipment is moved to new locations, the new location is inserted into the cell.
For example at the start of the year, the equipment was in Loc A (cell D3), it was then moved to locations as indicated by cells E3, F3 G3 etc The spreadsheet when populated will have a few hundred rows, some items will not have moved some will have moved once while some will have moved numerous times. This is the reason for column J, ie the current location So my formula should read. What is in cell H3 - IF H3 is blank then what is in G3 IF G3 is blank then what is in F3 etc. J3 currently shows Loc E which is correct IF I blank out H3 then J3 will show Loc D which is correct If I blank out G3 then J3 shows 0 (This where my problem is as the answer should be Loc C) Can you advise?? |
#5
|
||||
|
||||
![]()
There is a flaw in your logic
=IF(H3="";G3;IF(G3="";F3;IF(F3="";E3;IF(E3="";D3;I F(D3="";55;H3))))) always returns the value of G3 when H3 is empty, the value of G3 being LocD or 0. If I understand correctly you need the content of the last non empty cell for a given SN Try Code:
=IF($D1="","",INDEX($D3:$H3,MATCH(REPT("z",255),$D3:$H3))
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#6
|
|||
|
|||
![]()
Thanks, much appreciated.
|
#7
|
||||
|
||||
![]()
If this answered your question please mark it " solved" - (under thread tools) - Thx
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How exactly does the search function work in Excel | pintree3 | Excel | 2 | 01-26-2015 07:24 AM |
Excel function does not work in OneDrive for Business | Laibiang | Excel | 0 | 11-04-2014 07:48 PM |
![]() |
lcaretto | Excel Programming | 2 | 05-26-2014 07:19 PM |
Creating a graph for Future Value function (FV function) | bmoody | Excel | 2 | 11-06-2013 10:52 AM |
Save attachment function won't work in Outlook 2007. | WLVanS | Outlook | 0 | 09-16-2011 12:30 PM |