Excel Formula with Logic Needed

Panama1182

New Member
Joined
Apr 3, 2018
Messages
23
I need an excel formula with proper logic to copy the value of the cell above given certain criteria. Cell A377-Cell A747 needs to equal cell A376. Cell A748 is a different name but should stay that way because Cell C748 reads "Department 000." Essentially I want a formula that can understand that anytime it reads "Department 000" in Column C then the name in Column A is correct. For every cell below "Department 000" through "All Department Num" the correct value in Cells A should be the name of the closest cell above them where Column C reads "Department 000."
 

Attachments

  • ex1.PNG
    ex1.PNG
    19 KB · Views: 7
  • ex2.PNG
    ex2.PNG
    45.6 KB · Views: 7

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
It's a division sign.
The formula checks if the row has "Department 000" with $D$4:D4="Department 000". This returns TRUE or FALSE (1 or 0).
If TRUE, then 1/1 =1. If FALSE, then 1/0= #DIV0!
Lookup returns the closest match. Here, 2 is typically chosen as an arbitrary number that is close to 1, but it can be anything close to 1 like 1.1, 1.5, etc..
Finally, return the corresponding last TRUE in column B.
 
Upvote 0

Forum statistics

Threads
1,221,508
Messages
6,160,222
Members
451,631
Latest member
coffiajoseph

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