Leave Existing Data while formatting

BrWolv

New Member
Joined
Jun 18, 2011
Messages
37
Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
I am trying to format multiple columns, which have some data already populated in various cells. I would like to use an =IF statement to return “NA” on cells that contain certain text & then use the painter to copy the formula (I have 842 rows & need a statement similar to this in about 25 different columns)<o:p></o:p>
I am having trouble getting the existing data to remain the same after I paint the =IF statement. Is there a simple way to complete this formula, which would allow me to paint over all cells and only change the cells in which the value is true? An example of what I am trying (red text is for reference only, it is NOT what I am trying to type in the statement);<o:p></o:p>
=IF(A2="DSI", "NA", leave existing data in cell as is)<o:p></o:p>
Can anyone help me out?<o:p></o:p>
<o:p> </o:p>
Thank you!!<o:p></o:p>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Actually tried that one, & that replaces the existing data (returns NA in all cells with any data). Any other suggestions? I appreciate your time either way.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
Thanks <o:p></o:p>
 
Upvote 0
Can anyone help with this, I need to clean up an existing workbook which is already populated with various data. I need to insert multiple formulas & conditional formatting rules in a column based upon values in other columns. I can figure out all of those items, however, I cant seem to figure out how to leave the existing data alone. The formatting I am adding will add text to cells, such as Pending, or NA & the cells that contain data are either a date or a name (so there isn’t any existing formula, just data input).<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
This is a huge workbook, so doing it row by row isn’t an option, one example of a formula I am trying to figure out is;<o:p></o:p>
=IF(A2=”DSI”, “NA”, “if that argument is false, I need the existing data to remain in cell B2”)<o:p></o:p>
Anyone have a solution?<o:p></o:p>
<o:p> </o:p>
Thanks in advance!!<o:p></o:p>
 
Upvote 0
I'm not sure I understand what you mean by "leave the existing data alone".

As I interpreted your situation, you have a block of formulas in, say, E2:H100.

Then, in a second block of formulas in, say, J2:M100, you wanted e.g. J2 to ="NA" if A2 = "DSI" and otherwise return E2's value.

Is that not what you want? Maybe you are looking for a macro to replace E2:H100's *formulas* to include the IF statement?
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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