Delete certain N\A

MasmaAbdulhamidli

New Member
Joined
Sep 11, 2022
Messages
14
Office Version
  1. 2016
Platform
  1. Windows
Hi. I have multiple rows with datas but also N\A. I need to delete N\A till there is beginning value by each row. I have sample, can you help? I need only delete N/A till becomes value. In "tomato" row there is no need delete N/A because of first value is number

appleN/A12
peachN/AN/A3
tomato1N/A3
 
OK, my code will not work for you (it would have been really helpful to have that last image right from the very beginning!)
It looks like you just want to clear those values, but not delete/shift them over to the left.
I will need to re-work my code.
I'm so sorry for being to you trouble. Actually my problem is different. Maybe you can help me without N/A. May you give me a code for it? if there is no data for certain year there will be blank not N/A
 

Attachments

  • Untitled.png
    Untitled.png
    156.8 KB · Views: 2
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I'm so sorry for being to you trouble. Actually my problem is different. Maybe you can help me without N/A. May you give me a code for it? if there is no data for certain year there will be blank not N/A
I am confused...
How are you unsure of the data you are working with?
Why is your question changing so much?

And if the cell is already blank, what exactly are we doing?
There doesn't appear to be anything to remove if it is already blank?
 
Upvote 0
I am confused...
How are you unsure of the data you are working with?
Why is your question changing so much?

And if the cell is already blank, what exactly are we doing?
There doesn't appear to be anything to remove if it is already blank?
It worked. Your code for deleting N/A worked. Thank you very much. Sorry for I maked you angry) I am very grateful to you
 
Upvote 0
Not angry, just confused why things seemed to be changing significantly from the original question, and trying to understanding exactly what it was you were asking now.

Anyway, I am glad it worked for you.
 
Upvote 0

Forum statistics

Threads
1,215,139
Messages
6,123,262
Members
449,093
Latest member
Vincent Khandagale

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