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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,222,903
Messages
6,168,939
Members
452,227
Latest member
sam1121

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