IF AND OR Function

Roadrash

New Member
Joined
Oct 14, 2016
Messages
33
Hi,

I need to return a value in a cell based on 2 pieces of information/criteria being true.

I have 3 job roles

SrCTM
CTM
CTA

I then have 5 possible values 1,2,3,4 or 5 in a second cell.

I need the result in the final cell to be dependent on if (A1= Sr CTM and C2=1,2,3 etc) then it returns a value specified in another cell e.g. F2 If false then it needs to look for A1=CTM and C2 =1,2,3 etc then returns value in G2.

Using logic steps should be possible however the formula could be very long unless there is a short version. (appears Nested IFs should work)

Thanks.
 
OK seems borders work.

I want to fill the table with the yellow cell.

So if the first cell next to the yellow cell = SrCTM and project 1 month 1 = 1 then return SrCTM Level 1 = 0.1, if project 1 month 1 = 2 then returns 0.2.

For each cell I need the formula to determine if the role = SrCTM, CTM or CTA and then look at the corresponding month and whether it is level 1-5 and return the correct value according to the true statements.

Month 1Month 2Month 3Month 4 Level 1Level 2 Level 3Level 4Level 5
Project 11112SrCTM0.10.20.30.30.2
Project 20223CTM0.50.50.50.20.2
CTA11110.5
Month 1Month 2Month 3Month 4
SrCTM
CTM
CTA
<colgroup><col width="64" style="width: 48pt;" span="12"> <tbody> </tbody>
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
You didn't explain the significance of "Project 1", "Project 2" etc. so I put a value in A7 which allows you to specify the project:


Book1
ABCDEFGHIJKL
1Month 1Month 2Month 3Month 4Level 1Level 2Level 3Level 4Level 5
2Project 11112SrCTM0.10.20.30.30.2
3Project 20223CTM0.50.50.50.20.2
4CTA11110.5
5
6
7Project 1Month 1Month 2Month 3Month 4
8SrCTM0.10.10.10.2
9CTM0.50.50.50.5
10CTA1111
Sheet1
Cell Formulas
RangeFormula
B8=IFERROR(INDEX($H$2:$L$4,MATCH($A8,$G$2:$G$4,0),INDEX($A$1:$E$3,MATCH($A$7,$A$1:$A$3,0),MATCH(B$7,$A$1:$E$1,0))),0)


Paste across and down.

WBD
 
Upvote 0
Thanks. I was going to set up a separate table for each project (1, 2) etc with SrCTM, CTM etc in each project table. Then use the formula to fill each separate table. I will give the formula a try on my data set.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,216,070
Messages
6,128,610
Members
449,460
Latest member
jgharbawi

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