IF & COUNTIFS Formula?

banneduser123

Banned - Rules violations
Joined
Mar 29, 2006
Messages
181
Hi, I'm having trouble working out the below....hoping someone can help.

I am working in Two Sheets.

Trying to get a formula that does this:

Looks for the value of Sheet1 K2, in Sheet2 column B.
If that exists, then it looks to see if the balance in Sheet1 J2 is greater or less than the value of the respective row in Sheet2 column C.
If Sheet1 J2 is greater than the respective value, then it returns the value from column E. If less than, then it returns the value from column F.

please let me know if that wasn't clear, or if you need more info.

appreciate any help
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
TRY
=IF(J2>INDEX(Sheet2!C:C,MATCH(Sheet1!K2,Sheet2!B:B,0)),INDEX(Sheet2!E:E,MATCH(Sheet1!K2,Sheet2!B:B,0)),INDEX(Sheet2!F:F,MATCH(Sheet1!K2,Sheet2!B:B,0)))


What happens if J2 = Sheet2!C:C
 
Upvote 0
Ah, perfect. Thanks so much for the help.
To answer your question, i amended the formula to be:

=IF(J2>=INDEX.....
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,616
Latest member
intern444

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