Fill Cells with Value if number falls between a certain range

SkiliedSin

Board Regular
Joined
May 7, 2018
Messages
51
Office Version
  1. 365
Hey guys,

I was wondering if you guys could help me with this!

For example if the number falls between 0-15, to fill the cells adjacent to it with 1 "Name" and 2 "Age" (so 3 cells total)
16-30, to fill the cells adjacent to it with 2 "Name" and 4 "Age" (so 6 cells total),
and so forth and so on up until 80-95?

Would this be possible?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Please specify clearly the cell references as the formula will be dependent on this.

"cells adjacent to it"

on the same row?
in the same column?

Provide some input and expected output
 
Upvote 0
Hey, sorry about that

Yup, same row but two spaces to the right of
3eYs8DJ
3eYs8DJ
the cell with the number.
 
Upvote 0
Sorry, not sure how to attach an image on here.

https://imgur.com/a/3eYs8DJ

But basically, from that image I want to fill the cell "#Num!" and the two cells to the right of it with the words "Name", "Age" and "Age" because 54 (40-55) falls into the range in which I need to fill three cells with those three values if that makes any sense.

But I need it to change if the range was higher/lower as well to fill the cells with more/less instances of the word "Name" and "Age.
 
Upvote 0
Sorry, not sure how to attach an image on here.

https://imgur.com/a/3eYs8DJ

But basically, from that image I want to fill the cell "#Num!" and the two cells to the right of it with the words "Name", "Age" and "Age" because 54 (40-55) falls into the range in which I need to fill three cells with those three values if that makes any sense.

But I need it to change if the range was higher/lower as well to fill the cells with more/less instances of the word "Name" and "Age.
I'm sorry, but that picture is of no help in understanding what you want. Show us a picture of numbers from, say, three of your ranges and show us exactly what should be in the cells next to them (don't show us blank and errors, show us what you want our code to put in those cells).
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,215
Members
452,618
Latest member
Tam84

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