help understand formulas

j4ymf

Well-known Member
Joined
Apr 28, 2003
Messages
741
Office Version
  1. 365
Platform
  1. Windows
Hello

Prevously someone help me write these formulas
what they do is look up the first, second, third in a list im now trying to look up a forth and i can't get it to work any ideas what im doing wrong??

thank you

VBA Code:
=IFERROR(INDEX(Download!D:D,AGGREGATE(15,6,ROW(Download!D:D)/(COUNTIF(B$8:B8,Download!D:D)=0)/(Download!F:F=B8),1)),"")

=IFERROR(INDEX(Download!D:D,AGGREGATE(15,6,ROW(Download!D:D)/(COUNTIF(B$8:C8,Download!D:D)=0)/(Download!F:F=B8),1)),"")

=IFERROR(INDEX(Download!D:D,AGGREGATE(15,6,ROW(Download!D:D)/(COUNTIF(B$8:G8,Download!D:D)=0)/(Download!F:F=B8),1)),"")

i cant see why the 4th is not working???
Code:
=IFERROR(INDEX(Download!D:D,AGGREGATE(15,6,ROW(Download!D:D)/(COUNTIF(B$8:K8,Download!D:D)=0)/(Download!F:F=B8),1)),"")
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Where did the original formula come from? I've looked through some of your old threads and found this similar example along with an alternative suggestion that would probably work better, but not the one that you are using.
 
Upvote 0
Hello maabadi

thank you for getting back to me,
its a sheet i use for salarys so im struggling with out posting the data with it.
ill see what i can do.

thank you
 
Upvote 0
Thank you Jason

it would of only come from this forum as this is the only one i use

thank you
ill try the other one you surgested
 
Upvote 0
thanks jason,
I can get the original one to work, andy ideas to how i get the 4th answer?

jay
 
Upvote 0
If your attempt in post 1 is not working then it is most likely an error in the data causing a mismatch.

I would suggest trying @Peter_SSs alternative suggestion, if it does the same then that would confirm it.
 
Upvote 0
Jason

ive change it to this
=IFERROR(INDEX(Download!D:D,AGGREGATE(15,6,ROW(Download!J1:J9999)/((Download!F1:F9999=B8)*(Download!Q1:Q9999=A8)),2)),"")

how do i get the 2nd, 3rd, 4th answer then what bit do i change?

thank you
 
Upvote 0
I was actually thinking the other formula in that thread, but with that one the 2 at the end denotes 2nd position.

One thing that is coming to mind, the COUNTIF part of the formula in post 1 is going to be looking at multiple rows and columns. If there are multiple results in the same row then that could be the cause. Without seeing an example everything that we suggest is going to be guesswork.

its a sheet i use for salarys so im struggling with out posting the data with it.
Save a copy, change the confidential information such as names, payroll numbers, pay amounts, etc to fictional but keep them similar (for example if payroll numbers are alpha numeric then your example should be the same, not numeric). Try to keep any duplicates in the same places as well.
 
Upvote 0

Forum statistics

Threads
1,214,573
Messages
6,120,318
Members
448,956
Latest member
Adamsxl

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