Excel Row

arvindhari

New Member
Joined
Jul 30, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi with reference to the image what formula can i have in f1 and g1 to get the answer (which i hard coded into those cells). Basically f1 should have the value in E corresponding to the row of the first non blank value in column F and the value in E corresponding to the row of the Last non blank value in column F. I hope i explained it well but if u stare at the image you will see what I mean. Thank you.
 

Attachments

  • excelq1.jpg
    excelq1.jpg
    206.5 KB · Views: 11

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi & welcome to MrExcel.

What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Yes, please answer Fluff about your version, as it will dictate what solutions are available. In the meantime, something like this perhaps:

Book1 7-29-2024.xlsm
DEFG
1a4 a10a6 a12
21a1
32a2
43a3
54a4600
65a578
76a6806239
87a7234919
98a886838
109a9246694
1110a10271241
1211a11454
1312a1212
1413a13
1514a14
1615a15
1716a16
Sheet1
Cell Formulas
RangeFormula
F1:G1F1=INDEX($E$2:$E$17,SMALL(IF(F$2:F$17<>"",ROW(F$2:F$17)-1,""),1))&" "&INDEX($E$2:$E$17,LARGE(IF(F$2:F$17<>"",ROW(F$2:F$17)-1,""),1))


Though there may be more efficient options.
 
Upvote 0
Thanks for updating your profile.
As you have 365 another option
Fluff.xlsm
DEFG
1a4 a10a6 a12
21a1
32a2
43a3
54a4600
65a578
76a6806239
87a7234919
98a886838
109a9246694
1110a10271241
1211a11454
1312a1212
1413a13
1514a14
1615a15
1716a16
Sheet5
Cell Formulas
RangeFormula
F1:G1F1=LET(f,FILTER($E$2:$E$100,F2:F100<>""),TAKE(f,1)&" "&TAKE(f,-1))
 
Upvote 0
Thank you that solution worked. I had a more convoluted (and VERY inelegant) solution

=INDIRECT("E"&ROW(INDEX(F2:F17, MATCH(TRUE, INDEX((F2:F17<>0), 0), 0))))&" "&INDIRECT("E"&ROW(OFFSET(F2,COUNTA(F:F)+1,0)))
 
Upvote 0
Thanks for updating your profile.
As you have 365 another option
Fluff.xlsm
DEFG
1a4 a10a6 a12
21a1
32a2
43a3
54a4600
65a578
76a6806239
87a7234919
98a886838
109a9246694
1110a10271241
1211a11454
1312a1212
1413a13
1514a14
1615a15
1716a16
Sheet5
Cell Formulas
RangeFormula
F1:G1F1=LET(f,FILTER($E$2:$E$100,F2:F100<>""),TAKE(f,1)&" "&TAKE(f,-1))
Thanks your ( first formula didnt work on another sheet ).. this formula works beautifully
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Another option:
Book2
DEFG
1a4 a10a6 a12
21a1
32a2
43a3
54a4600
65a578
76a6806239
87a7234919
98a886838
109a9246694
1110a10271241
1211a11454
1312a1212
1413a13
1514a14
1615a15
1716a16
Sheet1
Cell Formulas
RangeFormula
F1:G1F1=TEXTJOIN(" ",,XLOOKUP(TRUE,F2:F17<>"",$E$2:$E$17,,,{1,-1}))
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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