Urgent Help Needed copy and pasting Values only when a condition is met

%3CLINGO-SUB%20id%3D%22lingo-sub-1924076%22%20slang%3D%22en-US%22%3EUrgent%20Help%20Needed%20copy%20and%20pasting%20Values%20only%20when%20a%20condition%20is%20met%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1924076%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22lia-message-subject-wrapper%20lia-component-subject%20lia-component-message-view-widget-subject-with-options%22%3E%3CDIV%20class%3D%22MessageSubject%22%3E%3CDIV%20class%3D%22MessageSubjectIcons%20%22%3E%3CSPAN%20class%3D%22lia-message-read%22%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexcel%2Fhelp-needed-copy-and-pasting-values-only-when-a-condition-is-met%2Fm-p%2F1906595%22%20target%3D%22_blank%22%3E%26nbsp%3B%3C%2FA%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CSPAN%3EHi%20Everyone%2C%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22lia-message-body%20lia-component-message-view-widget-body%20lia-component-body-signature-highlight-escalation%20lia-component-message-view-widget-body-signature-highlight-escalation%22%3E%3CDIV%20class%3D%22lia-message-body-content%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20excel%20table%20that%20tracks%20the%20%25%20of%20items%20that%20are%20in%20progress%20for%20a%20team.%20This%20is%20live%20data%20so%20when%20the%20dataset%20changes%2C%20so%20does%20the%20table.%20I%20want%20to%20be%20able%20to%20copy%20and%20paste%20these%20values%20every%20Friday%20so%20that%20I%20can%20see%20week%20on%20week%20trends.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20hoping%20i%20could%20say%20%3Dif(today()%3DC3%2CC10%2C%22%22).%20(in%20the%20screenshot%20this%20is%20how%20I%20would%20populate%20cell%20C4)This%20logic%20works%20but%20I%20would%20like%20the%20value%20to%20be%20static%20so%20that%20next%20week%20when%20the%20values%20in%20the%20source%20table%20have%20changed%2C%20the%20values%20in%20the%20tracker%20table%20have%20not.%20Is%20there%20a%20%22paste%20values%22%20version%20of%20this%20formula%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20screenshot%20attached%20the%20first%20table%20is%20the%20table%20that%20I%20would%20like%20to%20populate%20on%20a%20week%20on%20week%20basis%20with%20the%20static%20values.%20The%20table%20below%20is%20the%20live%20table%20that%20I%20pull%20the%20data%20from.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F235577iB745A313A99F1EED%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.PNG%22%20alt%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThanks%20for%20the%20help%3C%2FP%3E%3CP%3EIan%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1924076%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1925130%22%20slang%3D%22en-US%22%3ERe%3A%20Urgent%20Help%20Needed%20copy%20and%20pasting%20Values%20only%20when%20a%20condition%20is%20met%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1925130%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F874606%22%20target%3D%22_blank%22%3E%40Iank95%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20seems%20you%20answered%20your%20own%20question.%20%22Paste%20Values%22%20is%20the%20only%20answer%2C%20unless%20you%20want%20a%20macro%20to%20auto%20paste%20the%20results%20for%20you.%3C%2FP%3E%3CP%3ESince%20your%20formula%20is%20taking%20the%20TODAY%20function%2C%20when%20the%20date%20doesn't%20equal%20any%20of%20the%20provided%20dates%20in%20row%203%2C%20the%20result%20will%20be%20blank.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1926649%22%20slang%3D%22de-DE%22%3ESubject%3A%20Urgent%20Help%20Needed%20copy%20and%20pasting%20Values%20only%20when%20a%20condition%20is%20met%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1926649%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F874606%22%20target%3D%22_blank%22%3E%40Iank95%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EFrom%20the%20picture%20I%20can%20not%20recognize%20or%20understand%20your%20plan%20(maybe%20also%20the%20translation).%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ESince%20the%20possibilities%20in%20Excel%20are%20very%20diverse%2C%20the%20possible%20solutions%20are%20also%20diverse.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ETherefore%2C%20with%20your%20permission%2C%20please%20download%20a%20file%20(without%20sensitive%20data)%20with%20your%20request.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EAt%20the%20same%20time%2C%20I%20would%20ask%20you%20to%20name%20the%20Excel%20version%20and%20the%20operating%20system%2C%20as%20there%20may%20be%20different%20approaches%20to%20the%20proposed%20solution.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20understanding%20and%20patience%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor
Hi Everyone, 

 

I have an excel table that tracks the % of items that are in progress for a team. This is live data so when the dataset changes, so does the table. I want to be able to copy and paste these values every Friday so that I can see week on week trends. 

 

I was hoping i could say =if(today()=C3,C10,""). (in the screenshot this is how I would populate cell C4)This logic works but I would like the value to be static so that next week when the values in the source table have changed, the values in the tracker table have not. Is there a "paste values" version of this formula?

 

In the screenshot attached the first table is the table that I would like to populate on a week on week basis with the static values. The table below is the live table that I pull the data from. 

 

 

Capture.PNG

Thanks for the help

Ian 

8 Replies

@Iank95 

It seems you answered your own question. "Paste Values" is the only answer, unless you want a macro to auto paste the results for you.

Since your formula is taking the TODAY function, when the date doesn't equal any of the provided dates in row 3, the result will be blank.

@adversi 

Hi thanks for your response. 

 

This doesn't do what I need because it will always be referencing that cell. So as the date changes it will appear blank. Once the date criteria is fulfilled I want it to paste the value so that it is then static and will not change so I can see the trends on a week on week basis. Do you know how I can do this? Is there a paste values formula? I can't seem to find one. 

 

Thanks

Ian

@Iank95 

From the picture I can not recognize or understand your plan (maybe also the translation).

Since the possibilities in Excel are very diverse, the possible solutions are also diverse.

Therefore, with your permission, please download a file (without sensitive data) with your request.

At the same time, I would ask you to name the Excel version and the operating system, as there may be different approaches to the proposed solution.

 

Thank you for your understanding and patience

 

Nikolino

I know I don't know anything (Socrates)

@Iank95 

Basically, to replace a formula by a constant value requires human action or a macro.

 

There are tricks that give the result you require but they could cause problems using the workbook.  If you allow circular references with a single step then

= IF( (date=today)*(thisCell=0), value, thisCell)

will copy the value into 'thisCell' provided it is initially blank and the dates match.  Otherwise it will reference itself and retain its existing value.  If you try it, I would be interested to know how you get on!  Maybe I am being unduly pessimistic.

@Nikolino 

Hi Nikolino, 

 

Thank you for your response, I will try to be clearer. 

 

In the first screenshot, this is my source data table. This data flow has a connection to a SharePoint list so it is constantly changing (I have greatly simplified the data set).

 

The second screenshot is a summary pivot table that shows me how many projects are "In Progress" or "Not In Progress". This table is also continuously changing as the source data changes. 

 

The final screenshot is the table that I am trying to populate. What I want to do is copy the data from the summary pivot table (2nd screenshot) every Friday (When the date condition is met) but I do not want that data entry to change as the source data changes. This will allow me to populate that table over time and see the trend on a week on week basis. 

 

Please let me know if you can help as I am really stuck. 

Thanks in advance

 

IanCapture.PNGCapture2.PNGCapture3.PNG

@Peter Bartholomew 

Hi Peter, 

 

Unfortunately, this does not work. I would be very grateful if you could review my response to Nikolito as I have tried to be as clear as possible in my response. 

 

Thank you in advance

Ian

@Iank95 

As far as I could understand (... thanks to the translation, or maybe not) you want to copy certain areas from a workbook / worksheet to a new workbook / worksheet.

If this is the case, then maybe this VBA code could help you, you just have to set it up according to your ideas and let it run with a button.
It's just an idea.

Sub TestCopypaste ()
     Range ("A2: L2"). Select
     Selection.Copy
     Windows ("target mappe.xls"). Activate
     ActiveSheet.Paste
     Windows ("Data mappe.xls"). Activate
     Range ("A5: L5"). Select
     Application.CutCopyMode = False
     Selection.Copy
     Windows ("target mappe.xls"). Activate
     Sheets ("Table2"). Select
     ActiveSheet.Paste
     Windows ("Data mappe.xls"). Activate
     Range ("A8: L8"). Select
     Application.CutCopyMode = False
     Selection.Copy
     Windows ("target mappe.xls"). Activate
     Sheets ("Table3"). Select
     Range ("A2"). Select
     ActiveSheet.Paste
End Sub

 

Thank you for your understanding and patience

 

Nikolino

I know I don't know anything (Socrates)

 

@Iank95 

There are some undesirable characteristics but it should work.

Firstly the final table should not use text for the date series (not an Excel Table).

The workbook must allow circular referencing.

To clear values once set the formula has to be cleared and re-entered by copying across from an adjacent cell using Ctrl/Enter.

 

If you set out to use VBA try to limit the transfer to reading and writing the cell values rather than copy/pasting all the formatting properties along with the value.