Search : in
By :

Leave Value unchanged if false

Last answer on Feb 16, 2009 4:23:05 am GMT Paul, on Feb 14, 2009 7:21:38 pm GMT 
 Report this message to moderators

Hello,
Vlookup posts a value to worksheet1/C3 when the trigger is the date. C4thruC20 are "0". When the vlookup trigger is changed to the next date, the value of C3 changes to" 0" and "C4" displays the value.

The vlookup calculation goes like this:
=IF(A3='Payroll Calculator'!M2,VLOOKUP(H1,'Payroll Calculator'!$B$3:$M$28,8,FALSE),0)
(M2 is the date on the payroll calculator sheet, H1 is the employee # on sheet 1)

The desired result is to add all the values of column "a" but all the values change to 0 except the current vlookup because of the "0" at the end of the string.

How can I preserve and total the values of all the previous calculations of column "C"?

Solution that doesn't work:
Transfer the values of worksheet 1/column "C" to worksheet 2 column "C" using
"=IF(OR('sheet1'!C3>0)=TRUE,'Sheet1'!C3,false=do not changeC3).

Of course, "false=do not changeC3" is not a command, but it should be!! The "do not changeC3" could also be put on the end of the vlookup string if it were a command!

Is it Macro time (not desirable since this requires the user to press a button), or is there a command that I am missing that will leave the previously calculated value alone??

Thanks in advance!!

Configuration: Windows XP
Office 97
Firefox 3.0.6

Best answers for « Leave Value unchanged if false » in :
Excel - IF formulas for Printing and Calculation ShowExcel - IF formulas for Printing and Calculation Issue Solution Note Issue I am trying to get Excel IF formulas to print a text and calculation based on true/false. Such as, if I have some dates, and I don’t need to send a notice to a...
[Myth] aMSN allows you to know if someone has blocked you on WLM ShowaMSN allows you to know if someone has blocked you on Windows Live Messenger Myth Reality Explanations Myth aMSN software allows us to know who blocked us on Windows Live Messenger. Reality FALSE Explanations When it was launched,...
Access Regedit if disabled by Administrator ShowAccess Regedit if disabled by Administrator Issue Solution Note Issue When i run Regedit it displays " Regedit is disabled by the administrator", what to do? Solution THANKS TO DOUG KNOX!!!!!! This gives back access to REGEDIT!...

1

Helper, on Feb 15, 2009 2:34:10 pm GMT
  • +4

You may need to try a nested IF statement instead of IF(OR......

Also, try the formula in reverse order:
.
Instead of:
=IF(OR('sheet1'!C3>0)=TRUE,'Sheet1'!C3,false=do not changeC3)

Try:
"=IF(C3=FALSE,C3........

Reply to Helper

2

 Paul, on Feb 16, 2009 4:23:05 am GMT
  • +1

Thanks, Helper! This does create a circular reference, of course :(...

Reply to Paul