Need IF formula amending as "Too many arguments"

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
Hi

I have this formula
Excel Formula:
IF(ROUND(F5,2)=ROUND('Daily Tracking'!CG375,2),"MILES RUN THIS/LAST YTD  ►","ERROR! YTD MLG <> F5")
that I want to substitute the actual current/previous year i.e. "& THIS YEAR() & "/" & THIS YEAR()-1" (without the outer commas) for "THIS/LAST" but Excel errors "Too many arguments" and I don't know how to fix it. I seem to think I need the IFS function but I've tried it without success.

Help appreciated.

Many thanks!
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Where do you want it in the existing formula
Try using =YEAR(TODAY()) &"/" & YEAR(TODAY()-365)
AND
I think your original formula needs to be
Excel Formula:
=IF(ROUND(F5,2)=ROUND('Daily Tracking'!CG375,2),"MILES RUN THIS/LAST YTD  ►","ERROR! YTD MLG <>" &  F5)
 
Upvote 0
Hi Michael - yes, I take your point thanks and that is intentional as the cell is filled red when it errors and it's easy for me to see the correct value in F5.

I'm guessing this, but again, it's incorrect:

Excel Formula:
=IF(ROUND(F5,2)=ROUND('Daily Tracking'!CG375,2),"MILES RUN"& YEAR(TODAY()) & "/" & YEAR(TODAY()-365) "YTD  ►","ERROR! YTD MLG <> F5")
 
Upvote 0
Ahh, I've sorted it - many thanks Michael.
Excel Formula:
=IF(ROUND(F5,2)=ROUND('Daily Tracking'!CG375,2),"MILES RUN "&YEAR(TODAY())&"/"&YEAR(TODAY()-365)&" YTD  ►","ERROR! YTD MLG <> F5")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,819
Messages
6,121,741
Members
449,050
Latest member
excelknuckles

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