Delete certain N\A

MasmaAbdulhamidli

New Member
Joined
Sep 11, 2022
Messages
22
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: 7
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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