This did not work, it returns a false data. Here is some of the actual data and it starts at I2.
I tried =if(I2<=315,I2-269,if(I2<=329,I2-316,if(I2<=345,I2-330,If(I2<=359,I2-346,If(I2<=391,I2-360) after i press enter all data returns as false.
Ranges I actually want
269 - 315 (subtract 269)
316 - 329 (subtract 316)
330 - 345 (subtract 330)
346-359 (subtract 346)
360 - 391 (subtract 360)
<style type="text/css"><!--br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<colgroup><col style="width: 89px"></colgroup><tbody>[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=B8CCE4]#B8CCE4[/URL] , align: center"]260[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DBE5F1]#DBE5F1[/URL] , align: center"]265[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=B8CCE4]#B8CCE4[/URL] , align: center"]265[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DBE5F1]#DBE5F1[/URL] , align: center"]266[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=B8CCE4]#B8CCE4[/URL] , align: center"]278[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DBE5F1]#DBE5F1[/URL] , align: center"]285[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=B8CCE4]#B8CCE4[/URL] , align: center"]291[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DBE5F1]#DBE5F1[/URL] , align: center"]293[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=B8CCE4]#B8CCE4[/URL] , align: center"]298[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DBE5F1]#DBE5F1[/URL] , align: center"]301[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=B8CCE4]#B8CCE4[/URL] , align: center"]302[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DBE5F1]#DBE5F1[/URL] , align: center"]314[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=B8CCE4]#B8CCE4[/URL] , align: center"]320[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DBE5F1]#DBE5F1[/URL] , align: center"]337[/TD]
[/TR]
</tbody>[/TABLE]
Hi ,
When you say column A , I assume you wish to go cell by cell.
Let us assume your data is in the range A2:A200 ; in cell B2 , assuming column B is an unused column , put in the following formula :
=IF(A2 <=10 , A2 - 10 , IF(A2 <= 19 , A2 - 5 , "Not mentioned"))
What this will do is if A2 has any value less than or equal to 10 , it will subtract 10 from that value and put it in cell B2.
If A2 has any value between 11 and 19 , it will subtract 5 from that value and put it in cell B2.
Thus for all values in A2 which are positive , but between 0 and 9 , the result will be a negative value in B2.
Is this what you want ? If yes , then copy the above formula to the remaining cells B3 through B200.