Formula for listing a cell's contents as long as two adjacent cells meet the criteria

Saxon

New Member
Joined
May 16, 2014
Messages
6
Hello
First time poster. the final formula (I hope) for a work project is really stumping me. I need it to display the contents of a cell on a different sheet as long as 2 adjacent cells match specific criteria, it is causing me alot of headache to work out
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Welcome to the board.

Are you able to post an example of your data? Sheet names, cell ranges, criteria, etc...
 
Upvote 0
much of it is confidential however so far my formula looks like this
=IFERROR(INDEX(VLOOKUP($F2,Call_Totalizer!$A$8:$E$600,Call_totalizer!$K$8:$K$600='sales',13,FALSE),""))
i'm entirely self taught on this project when it comes to formulas so I appreciate i may be going down completely the wrong road
 
Upvote 0
Maybe this will get you in the right direction:

=IF(AND(condition 1,condition2),sheet name!cell address,"")
 
Upvote 0
much of it is confidential however so far my formula looks like this
=IFERROR(INDEX(VLOOKUP($F2,Call_Totalizer!$A$8:$E$600,Call_totalizer!$K$8:$K$600='sales',13,FALSE),""))
i'm entirely self taught on this project when it comes to formulas so I appreciate i may be going down completely the wrong road

Does this formula work? Do you just need it to give the results based on your adjecent cell criteria?
 
Upvote 0
To break down what I think it should be doing
=IFERROR(INDEX:- this bit I know
(
VLOOKUP($F2,Call_Totalizer!$A$8:$E$600:- if cell F2 matches cells in column A2 to A600 of the sheet Call_Totalizer
Call_totalizer!$K$8:$K$600='sales' :- and also Cells K8 to K600
,13,:- then display the contents of the adjacent cell in column 13 on Call_ Totalizer
FALSE),"")):- This bit I also know
 
Upvote 0
A few questions:

(VLOOKUP($F2,Call_Totalizer!$A$8:$E$600:- if cell F2 matches cells in column A2 to A600 of the sheet Call_Totalizer
Call_totalizer!$K$8:$K$600='sales' :- and also Cells K8 to K600

Do they need to match in the same row (i.e. the value is in A100 and K100), or just appear somewhere in each range?

then display the contents of the adjacent cell in column 13 on Call_ Totalizer

Just to clarify, column M on the row that matches from column K?
 
Upvote 0
yes they need to match in the same row and column M is what I want to display as long as Column K says 'sales'
 
Upvote 0
Does this work for you?

=IFERROR(IF(INDEX(Call_Totalizer!$A$8:$K$600,MATCH($F2,Call_Totalizer!$A$8:$A$600,0),11)="SALES",INDEX(Call_Totalizer!$A$8:$M$600,MATCH($F2,Call_Totalizer!$A$8:$A$600,0),13),""),"")
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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