Need Help Please!

Santosh080

Board Regular
Joined
Jul 15, 2016
Messages
73
Office Version
  1. 2021
Platform
  1. Windows
Hi Friends

I need some help in excel. Yesterday i face some problem in excel. I have file like below,


1.jpg


Here i want a formula in A2 cell so that when drag that formula i will get result like below,

2.jpg


I have no knowledge in VBA so please anybody help me. I need this in my office.

Thanks
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How about
VBA Code:
Sub Santosh()
   With Range("A1", Range("A" & Rows.Count).End(xlUp))
      .SpecialCells(xlBlanks).FormulaR1C1 = "=r[-1]c"
      .Value = .Value
   End With
End Sub
 
Upvote 0
thanks Fluff for help :)
Actually i have very little knowledge about VBAcodes . So, can it possible by simple function like IF or any other.
( I do not want to color the cell)
 
Upvote 0
What version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.
 
Upvote 0
What version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.
I have updated my profile. I am using Office 2016 in windows 7.
 
Upvote 0
Many thanks for that.
The simplest way is just to put =A1 into A2 & fill down to A4
then put =A5 into A6 & fill down.
Etc, etc
 
Upvote 0
Many thanks for that.
The simplest way is just to put =A1 into A2 & fill down to A4
then put =A5 into A6 & fill down.
Etc, etc
Thanks. I have tried that but this will take more time because i have huge database.
 
Upvote 0
In that case have a look here
Thanks I will try it.?
I have found a solution just now but I have not tried yet due to some other work. I don't know it will work or not.

The function is

=IF(ISBLANK($A2), $B1, $A2)

Here the person told that function is to use in new column.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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