Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Array formula returns data from SECOND relevant row, can't get first row

$
0
0

I want to copy, from a source sheet, select columns (h,f,e,g,k) out of relevant rows (relevant rows have column B entry that matches destination sheet A1/"title")

The formula I am using seems to skip the first row of relevant data. Can't figure out why.
Source sheet has header on row 1, data starts on row 2. Destination sheets have Sheet Title on row 1, header on row 2, then data gets copied in starting on row 3.

Source Sheet ('Paste-Data'):

IDNAMETYPESTYLEMODMFRDESCQTYCOSTMARPRI
1JOE111111111
2JOE222222222
3JOE333333333
4BOB444444444
5BOB555555555

Formula in cell B3 on destination sheet:

=IFERROR(INDEX('Paste-Data'!$B$1:$K$4000,SMALL(IF('Paste-Data'!$B$1:$B$4000=$A$1,ROW('Paste-Data'!$B$1:$B$4000)),ROWS($H$1:$H2)),7),"")

this should take the QTY from column H on the source sheet and put it in column B on the destination sheet.

Formula in cell E3 on destination sheet:

=IFERROR(INDEX('Paste-Data'!$B$1:$K$4000,SMALL(IF('Paste-Data'!$B$1:$B$4000=$A$1,ROW('Paste-Data'!$B$1:$B$4000)),ROWS($G$1:$G2)),6),"")

this should take the DESC from column G on the source sheet and put it in column E on the destination sheet.

Destination Sheets current results:

JOE
IDQTYMFRMODDESCPRI
i22222
ii33333
iii
BOB
IDQTYMFRMODDESCPRI
i44444
ii

Destination Sheets desired results:

JOE
IDQTYMFRMODDESCPRI
i11111
ii22222
iii33333
BOB
IDQTYMFRMODDESCPRI
i44444
ii55555

Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>