Help Please

Status
Not open for further replies.

Jmayfield4

New Member
Joined
Feb 13, 2020
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Okay all, I have tried so many things to get this to work and its not. So here I am asking for help again!

1675204662018.png

Above is my table (Figure 1) with the column heads, let's all just pretend that the very first line of data is row 2.

1675204982479.png

This is lookup table (Figure 2).


What I need is a formula to check and see if Months_Between has data, if no data, then check and see if Date_Hired_2 has data, if no data, return "Vacant". Now, if Months_Between has data, then use Lookup formula, to match range value of Months_Between in figure 2 and return the corresponding data. If Months_Between has no data, but Date_Hired_2 has data, return "Active".

So, what I think, and it has not been working is:

=IF(AND(ISBLANK(Months_Between),ISBLANK(Date_Hired_2)),"Vacant",IF(ISBLANK(Months_Between),"Active",LOOKUP(Months_Between),Figure2!$A$1:$A$4,Figure2!$B$1:$B$4)))

Any help????
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I think this is what your needing try

Book1
DEFG
1Date Hired 2Term Date 2Months Between
216-JanActive
36-Jan6-11 Months
416-JanVacant
5
6
7
80<6 Months
966-11 Months
101212-36 Months
1136> 36 Months
Sheet2
Cell Formulas
RangeFormula
G2:G4G2=IF(AND(ISBLANK(D2),ISBLANK(F2)),"Vacant",IF(F2<>"",INDEX($F$8:$F$11,MATCH(F2,$E$8:$E$11,0)),IF(AND(F2="",D2<>""),"Active","")))
 
Upvote 0
Duplicate to: If and Blanks provide data

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,110
Messages
6,123,146
Members
449,098
Latest member
Doanvanhieu

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