Write "Text" in the number of rows listed in a cell

WhatTheF

New Member
Joined
Feb 25, 2025
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
I'm trying to find a formula that will generate an array of rows with a text string in them based on the number in a cell. So, if A2 has the number 12 in it, and I input the formula in B2 it will populate B2:B13 with whatever text I've asked. In my example, it would be "Virginia Opossum."

Report Informatino Generation.xlsx
ABC
1Total Number of PatientsSpecies
212
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17Text to input in yellow cells, "Virginia Opossum"
18
19
Sheet8


Thank you, again!
 
Hi, here's one option you could try.

Book2
AB
1Total Number of PatientsSpecies
212Virginia Opossum
3Virginia Opossum
4Virginia Opossum
5Virginia Opossum
6Virginia Opossum
7Virginia Opossum
8Virginia Opossum
9Virginia Opossum
10Virginia Opossum
11Virginia Opossum
12Virginia Opossum
13Virginia Opossum
Sheet1
Cell Formulas
RangeFormula
B2:B13B2=IF(SEQUENCE(A2),"Virginia Opossum")
Dynamic array formulas.
 
Last edited:
Upvote 0
Solution
=IF(SEQUENCE(A2),"Virginia Opossum")

This works PERFECTLY! Thank you, sir! (After 14 hours of starring at that stupid workbook, my brain was FRIED! I appreciate your help!

-Mathis
 
Upvote 0

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